mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 16:24:25 -05:00
fix regex for jensens range
This commit is contained in:
parent
b6b1d8dbf7
commit
0c1d71ecb0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user