Skip to content

Commit 6dccb7d

Browse files
authored
stricter html string check
1 parent 9a82bce commit 6dccb7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rules/unescaped-html-literal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
},
1616

1717
create(context) {
18-
const htmlOpenTag = /^<[a-zA-Z]/
18+
const htmlOpenTag = /^\s*<[a-zA-Z]/
1919

2020
return {
2121
Literal(node) {

0 commit comments

Comments
 (0)