Skip to content

Commit 0ac0382

Browse files
committed
what's going on
1 parent 7e67f5a commit 0ac0382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/utils/extract_svelte_ignore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export function extract_svelte_ignore(offset, text, runes) {
2727
// Warnings have to be separated by commas, everything after is interpreted as prose
2828
for (const match of text.slice(length).matchAll(/([\w$-]+)(,)?/gm)) {
2929
const code = match[1];
30+
const x = match.index + 1; // ???
3031

3132
ignores.push(code);
3233

3334
if (!w.codes.includes(code)) {
3435
const replacement = replacements[code] ?? code.replace(/-/g, '_');
3536

3637
if (runes) {
37-
// github are you stuck?
3838
const start = offset + match.index;
3939
const end = start + code.length;
4040

0 commit comments

Comments
 (0)