Fix overeager `<style>` detection (#543)

master
Brad Cornes 2022-04-28 12:14:36 +01:00 committed by GitHub
parent 56bc549571
commit a2b694c3e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ let text = { text: { match: /[^]/, lineBreaks: true } }
let states = { let states = {
main: { main: {
cssBlockStart: { match: '<style', push: 'cssBlock' }, cssBlockStart: { match: /<style(?=[>\s])/, push: 'cssBlock' },
jsBlockStart: { match: '<script', push: 'jsBlock' }, jsBlockStart: { match: '<script', push: 'jsBlock' },
...text, ...text,
}, },