Skip to content

Commit 833175e

Browse files
clarkdoyyx990803
authored andcommitted
refactor: ignore control-regex lint for unsafeAttrCharRE (#8601)
1 parent 9476d3e commit 833175e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platforms/web/server/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const isAttr = makeMap(
1818
'target,title,type,usemap,value,width,wrap'
1919
)
2020

21-
const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/
21+
const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/ // eslint-disable-line no-control-regex
2222
export const isSSRUnsafeAttr = (name: string): boolean => {
2323
return unsafeAttrCharRE.test(name)
2424
}

0 commit comments

Comments
 (0)