Skip to content
Snippets Groups Projects
Unverified Commit 7f4a1e1b authored by Luca Weiss's avatar Luca Weiss Committed by Alexey Minnekhanov
Browse files

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.
parent 98001dce
Branches
No related tags found
No related merge requests found
Pipeline #197373 passed
......@@ -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+\\)|)$"
]
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment