Commit 78586941 authored by Elizabeth Popova's avatar Elizabeth Popova Committed by Commit Bot

[Autofill] Fix pattern identifier duplication and formatting in regex_patterns.json

Change-Id: Idf26e18bb75a8761c99099b7c247309b1a690e66
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2514399Reviewed-by: default avatarMatthias Körber <koerber@google.com>
Commit-Queue: Elizabeth Popova <lizapopova@google.com>
Cr-Commit-Position: refs/heads/master@{#823201}
parent 65ebdbba
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
], ],
"ru" : [ "ru" : [
{ {
"pattern_identifier": "de_street_name", "pattern_identifier": "ru_street_name",
"positive_pattern": "улица|название.?улицы", "positive_pattern": "улица|название.?улицы",
"positive_score": 1.1, "positive_score": 1.1,
"negative_pattern": null, "negative_pattern": null,
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
], ],
"pt" : [ "pt" : [
{ {
"pattern_identifier": "de_street_name", "pattern_identifier": "pt_street_name",
"positive_pattern": "rua|avenida|((?<!do |de )endereço)", "positive_pattern": "rua|avenida|((?<!do |de )endereço)",
"positive_score": 1.1, "positive_score": 1.1,
"negative_pattern": null, "negative_pattern": null,
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
} }
] ]
}, },
"ADDRESS_HOME_HOUSE_NUMBER":{ "ADDRESS_HOME_HOUSE_NUMBER":{
"en": [ "en": [
{ {
...@@ -53,7 +52,6 @@ ...@@ -53,7 +52,6 @@
"match_field_input_types": 1 "match_field_input_types": 1
} }
], ],
"de": [ "de": [
{ {
"pattern_identifier": "de_house_number", "pattern_identifier": "de_house_number",
...@@ -85,7 +83,6 @@ ...@@ -85,7 +83,6 @@
} }
] ]
}, },
"ATTENTION_IGNORED": { "ATTENTION_IGNORED": {
"en": [ "en": [
{ {
...@@ -254,7 +251,6 @@ ...@@ -254,7 +251,6 @@
"match_field_attributes": 3, "match_field_attributes": 3,
"match_field_input_types": 1 "match_field_input_types": 1
}, },
{ {
"pattern_identifier": "en_address_line_1_label_preserving", "pattern_identifier": "en_address_line_1_label_preserving",
"positive_pattern": "(^\\W*address)|(address\\W*$)|(?:shipping|billing|mailing|pick.?up|drop.?off|delivery|sender|postal|recipient|home|work|office|school|business|mail)[\\s\\-]+address|address\\s+(of|for|to|from)", "positive_pattern": "(^\\W*address)|(address\\W*$)|(?:shipping|billing|mailing|pick.?up|drop.?off|delivery|sender|postal|recipient|home|work|office|school|business|mail)[\\s\\-]+address|address\\s+(of|for|to|from)",
...@@ -263,7 +259,6 @@ ...@@ -263,7 +259,6 @@
"match_field_attributes": 1, "match_field_attributes": 1,
"match_field_input_types": 1 "match_field_input_types": 1
} }
], ],
"de": [ "de": [
{ {
...@@ -415,7 +410,6 @@ ...@@ -415,7 +410,6 @@
} }
] ]
}, },
"ADDRESS_LINE_2": { "ADDRESS_LINE_2": {
"en": [ "en": [
{ {
...@@ -558,7 +552,6 @@ ...@@ -558,7 +552,6 @@
} }
] ]
}, },
"ADDRESS_LINE_EXTRA": { "ADDRESS_LINE_EXTRA": {
"en": [ "en": [
{ {
...@@ -1707,7 +1700,6 @@ ...@@ -1707,7 +1700,6 @@
} }
] ]
}, },
"CREDIT_CARD_EXP_MONTH_BEFORE_YEAR": { "CREDIT_CARD_EXP_MONTH_BEFORE_YEAR": {
"en": [ "en": [
{ {
...@@ -1732,8 +1724,6 @@ ...@@ -1732,8 +1724,6 @@
} }
] ]
}, },
"GIFT_CARD": { "GIFT_CARD": {
"en": [ "en": [
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment