@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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -0
  2. 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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/core",
3
3
  "type": "module",
4
- "version": "1.5.1",
4
+ "version": "1.5.2",
5
5
  "description": "Core of Shiki",
6
6
  "author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",