Commit 150664d
Add Japanese and Chinese mobile number test cases for PhoneRecognizer (#1808)
* Add Japanese and Chinese mobile number test cases
This commit adds international PHONE_NUMBER test cases for Presidio Analyzer:
- Japanese mobile number formats: 090/080/070
- Chinese mobile number formats: 11-digit numbers starting with 1
These tests improve international coverage for the PhoneRecognizer.
* Extend phone number tests to include JP and CN using supported_regions override
This update adds Japanese and Chinese phone number examples to the phone recognizer test suite. The recognizer fixture is extended with supported_regions = DEFAULT_SUPPORTED_REGIONS + ("JP", "CN") so that the new cases can be detected without changing the library’s default behavior.
Only the test fixture is modified; leniency and other tests remain unchanged.
---------
Co-authored-by: Ron Shakutai <58519179+ShakutaiGit@users.noreply.github.com>
Co-authored-by: Sharon Hart <sharonh.dev@gmail.com>
Co-authored-by: Omri Mendels <omri374@users.noreply.github.com>1 parent 9c8c690 commit 150664d
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
138 | | - | |
| 142 | + | |
0 commit comments