We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b541d55 commit bea8702Copy full SHA for bea8702
index.js
@@ -52,7 +52,7 @@ cs.get.rgb = function (string) {
52
var hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;
53
var rgba = /^rgba?\(\s*([+-]?\d+)\s*,?\s*([+-]?\d+)\s*,?\s*([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
54
var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
55
- var keyword = /(\w+)/;
+ var keyword = /^(\w+)$/;
56
57
var rgb = [0, 0, 0, 1];
58
var match;
0 commit comments