@shikijs/transformers 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 +2 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -323,7 +323,7 @@ function transformerNotationWordHighlight(options = {}) {
323
323
  function parseMetaHighlightWords(meta) {
324
324
  if (!meta)
325
325
  return [];
326
- const match = Array.from(meta.matchAll(/\/((?:\\.|[^\/])+?)\//ig));
326
+ const match = Array.from(meta.matchAll(/\/((?:\\.|[^/])+)\//g));
327
327
  return match.map((v) => v[1].replace(/\\(.)/g, "$1"));
328
328
  }
329
329
  function transformerMetaWordHighlight(options = {}) {
@@ -398,7 +398,7 @@ function transformerNotationErrorLevel(options = {}) {
398
398
  function parseMetaHighlightString(meta) {
399
399
  if (!meta)
400
400
  return null;
401
- const match = meta.match(/{([\d,-]+)}/);
401
+ const match = meta.match(/\{([\d,-]+)\}/);
402
402
  if (!match)
403
403
  return null;
404
404
  const lines = match[1].split(",").flatMap((v) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/transformers",
3
3
  "type": "module",
4
- "version": "1.5.1",
4
+ "version": "1.5.2",
5
5
  "description": "Collective of common transformers transformers for Shiki",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "shiki": "1.5.1"
33
+ "shiki": "1.5.2"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "unbuild",