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)