chg: Turned the regexes for audiovisual works into a single one

pull/168/head
chrisr3d 2020-10-27 10:38:45 +01:00
parent 543406dff4
commit a50c06c9eb
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
2 changed files with 2 additions and 7 deletions

View File

@ -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": [

View File

@ -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