From d97eddd61c6f6b184210c68edbe23fb063accf14 Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Thu, 26 Sep 2024 14:18:24 -0400 Subject: [PATCH] Clean up regex --- src/language/markdown-source-code.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/language/markdown-source-code.js b/src/language/markdown-source-code.js index 94b68b6..558c278 100644 --- a/src/language/markdown-source-code.js +++ b/src/language/markdown-source-code.js @@ -40,7 +40,7 @@ import { findOffsets } from "../util.js"; const commentParser = new ConfigCommentParser(); const configCommentStart = //gu; +const htmlComment = //gsu; /** * Represents an inline config comment in the source code. @@ -116,7 +116,7 @@ function extractInlineConfigCommentsFromHTML(node) { comments.push( new InlineConfigComment({ - value: match[1], + value: match[1].trim(), position: { start, end,