Merge pull request #1 from magical/master

Avoid lookbehind assertion
This commit is contained in:
Eevee 2020-09-10 17:13:00 -06:00 committed by GitHub
commit fccb59a1a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,7 +290,7 @@ export function parse_level(buf) {
// for levels with multiple hint tiles, delineated by [CLUE]. // for levels with multiple hint tiles, delineated by [CLUE].
// For my purposes, extra hints are associated with the // For my purposes, extra hints are associated with the
// individual tiles, so we'll map those later // individual tiles, so we'll map those later
[level.comment, ...extra_hints] = str.split(/(?<=^|\n)\[CLUE\]\n/g); [level.comment, ...extra_hints] = str.split(/^\[CLUE\]$/mg);
} }
continue; continue;
} }