Commit 394eebf
authored
fix(isPostalCode): fix overly permissive IR regexp (#2136)
* fix(isPostalCode): fix overly permissive IR regexp
replace "word boundary" anchor `\b` with start/end of line anchors `^` / `$`, to fix this
fixes #2135
* test(validators): add invalid tests for isPostalCode locale IR1 parent f394da0 commit 394eebf
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11471 | 11471 | | |
11472 | 11472 | | |
11473 | 11473 | | |
| 11474 | + | |
| 11475 | + | |
| 11476 | + | |
11474 | 11477 | | |
11475 | 11478 | | |
11476 | 11479 | | |
| |||
0 commit comments