From 5e291450b0e2c6fbada635d19726e8e5a01ddc7f Mon Sep 17 00:00:00 2001 From: Skillet Date: Fri, 21 Apr 2023 19:35:45 -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 c4986f9..cd3bfb4 100644 --- a/mapvote.js +++ b/mapvote.js @@ -1177,7 +1177,7 @@ layer // this.verbose(1, 'Parsing layer', l) 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; + if (!gl) return; if (!gl.level) this.verbose(1, 'Empty level', gl)