mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-22 00:11:02 -05:00
Fixed regex generator returning non-global RegExp
This commit is contained in:
parent
915ab6b52b
commit
926b1a264b
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ export function getMinecraftVersionRegExp(versions?: Iterable<string>): RegExp {
|
||||||
pattern = `${version.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d")}|${pattern}`;
|
pattern = `${version.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d")}|${pattern}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return pattern === VERSION_PATTERN ? VERSION_REGEX : new RegExp(pattern, "gs");
|
return new RegExp(pattern, "gs");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue