Skip to content

Commit

Permalink
Clean up regex
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Sep 26, 2024
1 parent b0bc353 commit d97eddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language/markdown-source-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { findOffsets } from "../util.js";
const commentParser = new ConfigCommentParser();
const configCommentStart =
/<!--\s*(eslint(?:-enable|-disable(?:(?:-next)?-line)?)?)/u;
const htmlComment = /<!--\s*(.*?)\s*-->/gu;
const htmlComment = /<!--(.*?)-->/gsu;

/**
* Represents an inline config comment in the source code.
Expand Down Expand Up @@ -116,7 +116,7 @@ function extractInlineConfigCommentsFromHTML(node) {

comments.push(
new InlineConfigComment({
value: match[1],
value: match[1].trim(),
position: {
start,
end,
Expand Down

0 comments on commit d97eddd

Please sign in to comment.