Skip to content

Commit

Permalink
refactor(refactor(web-compiler): removed ignore in regex): Removed ig…
Browse files Browse the repository at this point in the history
…nore flag in regex

fix vuejs#12113
  • Loading branch information
royeden committed Aug 24, 2021
1 parent 3ae0bc0 commit 77be124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/web/compiler/modules/class.js
Expand Up @@ -23,7 +23,7 @@ function transformNode (el: ASTElement, options: CompilerOptions) {
}
}
if (staticClass) {
el.staticClass = JSON.stringify(staticClass.replace(/\s+/gi, " ").trim())
el.staticClass = JSON.stringify(staticClass.replace(/\s+/g, " ").trim())
}
const classBinding = getBindingAttr(el, 'class', false /* getStatic */)
if (classBinding) {
Expand Down

0 comments on commit 77be124

Please sign in to comment.