fix regex for jensens range

This commit is contained in:
Skillet 2023-07-28 19:33:15 -04:00 committed by GitHub
parent b6b1d8dbf7
commit 0c1d71ecb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -620,7 +620,7 @@ export default class SquadServer extends EventEmitter {
mapLayer(layid) {
layid = layid.replace(/[^a-z_\d]/gi, '');
const gl =
/((?<mod>[a-zA-Z0-9]+)_)?(?<level>[a-zA-Z0-9]+)_(?<gamemode>[a-zA-Z0-9]+)_(?<version>[a-zA-Z0-9]+)(_(?<team1>[a-zA-Z0-9]+)v(?<team2>[a-zA-Z0-9]+))?/.exec(
/^((?<mod>[A-Z]+)_)?(?<level>[A-Za-z]+)_((?<mode>[A-Za-z]+)(_|$))?((?<version>[vV][0-9]+)(_|$))?((?<team1>[a-zA-Z0-9]+)[-v](?<team2>[a-zA-Z0-9]+))?/.exec(
layid
)?.groups;
if (!gl) return;