Skip to content

Commit

Permalink
refactor: ignore control-regex lint for unsafeAttrCharRE (vuejs#8601)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and aJean committed Aug 19, 2020
1 parent 53c6d76 commit 01491d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/web/server/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const isAttr = makeMap(
'target,title,type,usemap,value,width,wrap'
)

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

0 comments on commit 01491d6

Please sign in to comment.