Fix overeager `<style>` detection (#543)
parent
56bc549571
commit
a2b694c3e0
|
@ -12,7 +12,7 @@ let text = { text: { match: /[^]/, lineBreaks: true } }
|
|||
|
||||
let states = {
|
||||
main: {
|
||||
cssBlockStart: { match: '<style', push: 'cssBlock' },
|
||||
cssBlockStart: { match: /<style(?=[>\s])/, push: 'cssBlock' },
|
||||
jsBlockStart: { match: '<script', push: 'jsBlock' },
|
||||
...text,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue