diff --git a/static/js/variant.js b/static/js/variant.js index 8b1dc128a5..2bec6e6ce2 100644 --- a/static/js/variant.js +++ b/static/js/variant.js @@ -241,11 +241,11 @@ var variants = { return c; } c = c.trim(); - c = c.replace( /\s*\(\s*/, "( " ); - c = c.replace( /\s*\)\s*/, " )" ); - c = c.replace( /\s*,\s*/, ", " ); - c = c.replace( /0*\./, "." ); - c = c.replace( / +/, " " ); + c = c.replace( /\s*\(\s*/g, "( " ); + c = c.replace( /\s*\)\s*/g, " )" ); + c = c.replace( /\s*,\s*/g, ", " ); + c = c.replace( /0*\./g, "." ); + c = c.replace( / +/g, " " ); return c; },