Commit 2e55ed1
fix(analyzer): remove erroneous anchor in Italian driver license regex (#1899)
The regex for U1-format Italian driver licenses had an erroneous ^ anchor
that prevented matching when the license number was not at the start of
the string. This fix removes the anchor so licenses like U1K711J11M are
correctly recognized regardless of position in text.
Co-authored-by: root <root@C20251020184286.local>1 parent 91b903a commit 2e55ed1
File tree
2 files changed
+5
-1
lines changed- presidio-analyzer
- presidio_analyzer/predefined_recognizers/country_specific/italy
- tests
2 files changed
+5
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
0 commit comments