Skip to content

Commit

Permalink
chore: 🎨 style code
Browse files Browse the repository at this point in the history
  • Loading branch information
cworld1 committed Nov 29, 2024
1 parent 13b4e94 commit 0f781ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"@astrojs/sitemap": "^3.2.1",
"@astrojs/tailwind": "^5.1.2",
"@astrojs/vercel": "^7.8.2",
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"@waline/client": "^3.3.2",
"astro": "^4.16.13",
"astro-icon": "^1.1.2",
Expand All @@ -45,6 +44,7 @@
},
"devDependencies": {
"@eslint/js": "^9.15.0",
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"@playform/compress": "^0.1.6",
"@tailwindcss/typography": "^0.5.15",
"@types/xmldom": "^0.1.34",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/shikiOfficialTransformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function transformerNotationMap(
new RegExp(
`\\s*(?://|/\\*|<!--|#|--|%{1,2}|;{1,2}|"|')\\s+\\[!code (${Object.keys(classMap).map(escapeRegExp).join('|')})(:\\d+)?\\]\\s*(?:\\*/|-->)?\\s*$`
),
function ([_unused, match, range = ':1'], _line, _comment, lines, index) {
function ([, match, range = ':1'], _line, _comment, lines, index) {
const lineNum = Number.parseInt(range.slice(1), 10)
lines.slice(index, index + lineNum).forEach((line) => {
this.addClassToHast(line, classMap[match])
Expand Down

0 comments on commit 0f781ee

Please sign in to comment.