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;