Add alias for !=

This commit is contained in:
pietervdvn 2021-06-21 03:08:33 +02:00
parent 91b21647a3
commit 2c82bafd24

View file

@ -67,6 +67,17 @@ export class FromJSON {
true
);
}
if (tag.indexOf("!~") >= 0) {
const split = Utils.SplitFirst(tag, "!~");
if (split[1] === "*") {
split[1] = "..*"
}
return new RegexTag(
split[0],
new RegExp("^" + split[1] + "$"),
true
);
}
if (tag.indexOf("~") >= 0) {
const split = Utils.SplitFirst(tag, "~");
if (split[1] === "*") {