not global

This commit is contained in:
MathMan05
2026-07-20 00:34:23 -05:00
parent 8191c6bb3c
commit 354fc1d28b
+2 -2
View File
@@ -50,9 +50,9 @@ function* lex(code: string, config: clikeConf) {
const r = regex(config);
const keywords = new Set(config.keywords);
if (config.firstLineShabang) {
const m = code.match(/^#!.*\n?/gm);
const m = code.match(/^#!.*\n?/m);
if (m) {
code = code.replace(/^#!.*\n?/gm, "");
code = code.replace(/^#!.*\n?/m, "");
yield {
type: hcolors.comment,
content: m[0],