fix: `vueRE` conflicting with `lineNoRE` (#4247)

pull/4228/head
Heptazhou 1 month ago committed by GitHub
parent 1628918f30
commit 2ac64b8d41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -90,7 +90,7 @@ export async function highlight(
}
]
const vueRE = /-vue$/
const vueRE = /-vue(?=:|$)/
const lineNoStartRE = /=(\d*)/
const lineNoRE = /:(no-)?line-numbers(=\d*)?$/
const mustacheRE = /\{\{.*?\}\}/g

Loading…
Cancel
Save