variant: normalize whole color value #188

This commit is contained in:
Sören Weber 2022-02-22 20:34:15 +01:00
parent bad3af5889
commit e4f0ed138c
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -241,11 +241,11 @@ var variants = {
return c; return c;
} }
c = c.trim(); c = c.trim();
c = c.replace( /\s*\(\s*/, "( " ); c = c.replace( /\s*\(\s*/g, "( " );
c = c.replace( /\s*\)\s*/, " )" ); c = c.replace( /\s*\)\s*/g, " )" );
c = c.replace( /\s*,\s*/, ", " ); c = c.replace( /\s*,\s*/g, ", " );
c = c.replace( /0*\./, "." ); c = c.replace( /0*\./g, "." );
c = c.replace( / +/, " " ); c = c.replace( / +/g, " " );
return c; return c;
}, },