From 246d904a921e967c6274944c6fb99ddb54115385 Mon Sep 17 00:00:00 2001 From: Davide Fantino <80767709+fantinodavide@users.noreply.github.com> Date: Wed, 22 Mar 2023 00:01:49 +0100 Subject: [PATCH] chore: layerid mod prefix --- mapvote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapvote.js b/mapvote.js index b863199..d18be4c 100644 --- a/mapvote.js +++ b/mapvote.js @@ -1103,7 +1103,7 @@ export default class MapVote extends DiscordBasePlugin { mapLayer(l) { l = l.replace(/[^a-z_\d]/gi, '') // this.verbose(1, 'Parsing layer', l) - const gl = /^(?\w+)_(?\w+)_(?\w+)$/i.exec(l)?.groups + const gl = /^((?\w+_))?(?\w+)_(?\w+)_(?\w+)$/i.exec(l)?.groups // this.verbose(1, 'Parsed layer', gl) if (!gl || Object.keys(gl).length != 3) return;