Browse Source

refactor: ignore control-regex lint for unsafeAttrCharRE (#8601)

dev
Clark Du 6 years ago
committed by Evan You
parent
commit
833175e9d6
  1. 2
      src/platforms/web/server/util.js

2
src/platforms/web/server/util.js

@ -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)
}

Loading…
Cancel
Save