chg: Turned the regexes for audiovisual works into a single one
parent
543406dff4
commit
a50c06c9eb
|
@ -1,12 +1,7 @@
|
|||
{
|
||||
"description": "Numbers that should never be attributed.",
|
||||
"list": [
|
||||
"/((?:\\+|00)33?|0?)(19900)([0-9]{4})/g",
|
||||
"/((?:\\+|00)33?|0?)(26191)([0-9]{4})/g",
|
||||
"/((?:\\+|00)33?|0?)(35301)([0-9]{4})/g",
|
||||
"/((?:\\+|00)33?|0?)(46571)([0-9]{4})/g",
|
||||
"/((?:\\+|00)33?|0?)(53649)([0-9]{4})/g",
|
||||
"/((?:\\+|00)33?|0?)(63998)([0-9]{4})/g",
|
||||
"/((?:\\+|00)33?|0?)(19900|26191|35301|46571|53649|63998)([0-9]{4})/g",
|
||||
"/((?:\\+|00)33?|0?)(999)([0-9]{6})/g"
|
||||
],
|
||||
"matching_attributes": [
|
||||
|
|
|
@ -12,7 +12,7 @@ def generate_french_warninglist():
|
|||
|
||||
# Warning list for numbers dedicated to audiovisual works: starting with any of the following list
|
||||
prefixes = ('19900', '26191', '35301', '46571', '53649', '63998')
|
||||
warninglist.extend(regex % (prefix, '4') for prefix in prefixes)
|
||||
warninglist.append(regex % ('|'.join(prefixes), '4'))
|
||||
|
||||
return warninglist
|
||||
|
||||
|
|
Loading…
Reference in New Issue