1
0
mirror of synced 2024-12-13 23:41:04 +01:00

Magic base85: Remove 'i' flag

This commit is contained in:
Benedikt Werner 2020-05-20 00:23:50 +02:00
parent 15dd9d4c93
commit eab1be0e2c
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB

View File

@ -36,17 +36,14 @@ class FromBase85 extends Operation {
this.checks = [ this.checks = [
{ {
pattern: "^\\s*(?:<~)?(?:(?:\\s*[!-u]){5}|\\s*z)+[!-u\\s]*(?:~>)?\\s*$", pattern: "^\\s*(?:<~)?(?:(?:\\s*[!-u]){5}|\\s*z)+[!-u\\s]*(?:~>)?\\s*$",
flags: "i",
args: ["!-u"] args: ["!-u"]
}, },
{ {
pattern: "^(?:\\s*[0-9a-zA-Z.\\-:+=^!/*?&<>()[\\]{}@%$#])+\\s*$", pattern: "^(?:\\s*[0-9a-zA-Z.\\-:+=^!/*?&<>()[\\]{}@%$#])+\\s*$",
flags: "i",
args: ["0-9a-zA-Z.\\-:+=^!/*?&<>()[]{}@%$#"] args: ["0-9a-zA-Z.\\-:+=^!/*?&<>()[]{}@%$#"]
}, },
{ {
pattern: "^(?:\\s*[0-9A-Za-z!#$%&()*+\\-;<=>?@^_`{|}~])+\\s*$", pattern: "^(?:\\s*[0-9A-Za-z!#$%&()*+\\-;<=>?@^_`{|}~])+\\s*$",
flags: "i",
args: ["0-9A-Za-z!#$%&()*+\\-;<=>?@^_`{|}~"] args: ["0-9A-Za-z!#$%&()*+\\-;<=>?@^_`{|}~"]
}, },
]; ];