diff --git a/src/games/minecraft/minecraft-version-lookup.ts b/src/games/minecraft/minecraft-version-lookup.ts index aa332b5..63e94c8 100644 --- a/src/games/minecraft/minecraft-version-lookup.ts +++ b/src/games/minecraft/minecraft-version-lookup.ts @@ -160,7 +160,7 @@ export function getMinecraftVersionRegExp(versions?: Iterable): RegExp { pattern = `${version.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d")}|${pattern}`; } } - return pattern === VERSION_PATTERN ? VERSION_REGEX : new RegExp(pattern, "gs"); + return new RegExp(pattern, "gs"); } /**