Fix overeager `<style>` detection (#543)
parent
56bc549571
commit
a2b694c3e0
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue