From 37c37bea3ce02c815e78484b3e9f013bc67d5aaf Mon Sep 17 00:00:00 2001 From: Skillet Date: Fri, 21 Apr 2023 19:14:21 -0400 Subject: [PATCH] fix rcon return --- mapvote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapvote.js b/mapvote.js index facd1fa..f000cb3 100644 --- a/mapvote.js +++ b/mapvote.js @@ -1169,7 +1169,7 @@ layer mapLayer(l) { l = l.replace(/[^a-z_\d]/gi, '') // this.verbose(1, 'Parsing layer', l) - const gl = /^((?[a-z]+)_)?(?[a-z]+)_(?[a-z]+)_(?[a-z0-9]+)(_(?[a-z]+)v(?[a-z]+))?$/i.exec(l)?.groups + const gl = /((?[a-zA-Z0-9]+)_)?(?[a-zA-Z0-9]+)_(?[a-zA-Z0-9]+)_(?[a-zA-Z0-9]+)(_(?[a-zA-Z0-9]+)v(?[a-zA-Z0-9]+))?/.exec(l)?.groups // this.verbose(1, 'Parsed layer', gl) if (!gl || Object.keys(gl).length !== 3) return;