@shikijs/core 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1178,6 +1178,7 @@ function splitWhitespaceTokens(tokens) {
|
|
|
1178
1178
|
return line.flatMap((token) => {
|
|
1179
1179
|
if (token.content.match(/^\s+$/))
|
|
1180
1180
|
return token;
|
|
1181
|
+
// eslint-disable-next-line regexp/no-super-linear-backtracking
|
|
1181
1182
|
const match = token.content.match(/^(\s*)(.*?)(\s*)$/);
|
|
1182
1183
|
if (!match)
|
|
1183
1184
|
return token;
|