Skip to content

Commit aab51ff

Browse files
clarkdohefeng
authored and
hefeng
committed
refactor: ignore control-regex lint for unsafeAttrCharRE (vuejs#8601)
1 parent c42933b commit aab51ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)