From 354fc1d28b66f11fbd74247bb91d99d219b035e2 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Mon, 20 Jul 2026 00:34:23 -0500 Subject: [PATCH] not global --- src/webpage/highlighter/clike/lex.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webpage/highlighter/clike/lex.ts b/src/webpage/highlighter/clike/lex.ts index 5398c11..88d5122 100644 --- a/src/webpage/highlighter/clike/lex.ts +++ b/src/webpage/highlighter/clike/lex.ts @@ -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],