mrhlpr.json: fix matching of numbers in regex (!957)

In the regex [a-z-0-9] you don't need a backslash before the minus in
the middle, so remove that to bring it in line with other regexes.

In the regex [a-z\/-0-9] you do need a backslash in front of the minus
though, otherwise only the numbers 0 and 9 are allowed by the regex.
This commit is contained in:
Luca Weiss 2020-02-16 13:31:27 +01:00 committed by Alexey Min
parent 98001dce42
commit 7f4a1e1bc2
No known key found for this signature in database
GPG key ID: 463F84201DACD7B9

View file

@ -7,12 +7,12 @@
"^[a-z]+/[a-z-0-9*{}]+: upgrade to [0-9\\.a-z\\-_]+( \\(!\\d+\\)|)$",
"^[a-z]+/[a-z-0-9*{}]+: remove( \\(!\\d+\\)|)$",
"^[a-z]+/[a-z-0-9*{}]+: remove, upstreamed( \\(!\\d+\\)|)$",
"^CI: [a-z\\-0-9*{}\\(\\)\\.,_ ][A-Za-z\\/-0-9*{}\\(\\)\\.,_ ]+( \\(!\\d+\\)|)$",
"^mrhlpr.json: [a-z\\-0-9*{}\\(\\)\\.,_ ][A-Za-z\\/-0-9*{}\\(\\)\\.,_ ]+( \\(!\\d+\\)|)$",
"^pmaports.cfg: [a-z\\-0-9*{}\\(\\)\\.,_ ][A-Za-z\\/-0-9*{}\\(\\)\\.,_ ]+( \\(!\\d+\\)|)$"
"^CI: [a-z-0-9*{}\\(\\)\\.,_ ][A-Za-z\\/\\-0-9*{}\\(\\)\\.,_ ]+( \\(!\\d+\\)|)$",
"^mrhlpr.json: [a-z-0-9*{}\\(\\)\\.,_ ][A-Za-z\\/\\-0-9*{}\\(\\)\\.,_ ]+( \\(!\\d+\\)|)$",
"^pmaports.cfg: [a-z-0-9*{}\\(\\)\\.,_ ][A-Za-z\\/\\-0-9*{}\\(\\)\\.,_ ]+( \\(!\\d+\\)|)$"
],
"unknown": [
"^[a-z-0-9_.*{}\\/]+: [a-z\\-0-9*{}\\(\\)\\.,_ ][A-Za-z\\/-0-9*{}\\(\\)\\.,_ ]+( \\(!\\d+\\)|)$"
"^[a-z-0-9_.*{}\\/]+: [a-z-0-9*{}\\(\\)\\.,_ ][A-Za-z\\/\\-0-9*{}\\(\\)\\.,_ ]+( \\(!\\d+\\)|)$"
]
}
}