Skip to content

Commit 77be124

Browse files
committed
refactor(refactor(web-compiler): removed ignore in regex): Removed ignore flag in regex
fix vuejs#12113
1 parent 3ae0bc0 commit 77be124

File tree

1 file changed

+1
-1
lines changed
  • src/platforms/web/compiler/modules

1 file changed

+1
-1
lines changed

src/platforms/web/compiler/modules/class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function transformNode (el: ASTElement, options: CompilerOptions) {
2323
}
2424
}
2525
if (staticClass) {
26-
el.staticClass = JSON.stringify(staticClass.replace(/\s+/gi, " ").trim())
26+
el.staticClass = JSON.stringify(staticClass.replace(/\s+/g, " ").trim())
2727
}
2828
const classBinding = getBindingAttr(el, 'class', false /* getStatic */)
2929
if (classBinding) {

0 commit comments

Comments
 (0)