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 4e2f79f commit 5938541Copy full SHA for 5938541
src/lib/command-transformer.ts
@@ -21,7 +21,7 @@ function detectRanges(code: string): MetaRanges {
21
const contents: ColorContentRange[] = []
22
const hides: HideRange[] = []
23
24
- const re = /<([A-Za-z]+)>([\s\S]*?)<\/\1>/g
+ const re = /<([A-Za-z_+-]+)>([\s\S]*?)<\/\1>/g
25
let match: RegExpExecArray | null
26
while ((match = re.exec(code)) !== null) {
27
const [full, colorName, inner] = match
0 commit comments