We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd335ca commit 3f5fd39Copy full SHA for 3f5fd39
src/context/index.ts
@@ -142,8 +142,8 @@ function* extractScriptBlocks(code: string): IterableIterator<{
142
tagRange[1] - 9,
143
]
144
145
- // eslint-disable-next-line regexp/no-unused-capturing-group -- maybe bug
146
const attrRe =
+ // eslint-disable-next-line regexp/no-unused-capturing-group -- maybe bug
147
/(<key>[^\s=]+)(?:=(?:"(<val>[^"]*)"|'(<val>[^"]*)'|(<val>[^\s=]+)))?/giu
148
const attrs: Record<string, string | undefined> = {}
149
while ((res = attrRe.exec(attributes))) {
0 commit comments