Repository: svg/svgo (js)

Issue:
shofthex: false does not transform ff0000 to red
With default settings (which includes shortname: true):
<g color="#ff0000"/>
is optimized to:
<g color="red"/>

When setting:
{ "shorthex": false }

the same behavior is expected but the color remains:
<g color="#ff0000"/>

Pull request:
#757 shorthex false does not transform f00
Fixes #757 

Patch:
diff --git a/plugins/_collections.js b/plugins/_collections.js
index 8ff3d1f..fb42ad8 100644
--- a/plugins/_collections.js
+++ b/plugins/_collections.js
@@ -2512,6 +2512,7 @@ exports.colorsShortNames = {
   '#dda0dd': 'plum',
   '#800080': 'purple',
   '#f00': 'red',
+  '#ff0000': 'red',
   '#fa8072': 'salmon',
   '#a0522d': 'sienna',
   '#c0c0c0': 'silver',


Test patch:
diff --git a/test/plugins/convertColors.03.svg b/test/plugins/convertColors.03.svg
index 3308515..3f84b6b 100644
--- a/test/plugins/convertColors.03.svg
+++ b/test/plugins/convertColors.03.svg
@@ -1,9 +1,15 @@
 <svg xmlns="http://www.w3.org/2000/svg">
     <g color="#ff0000"/>
+    <g color="#f00"/>
 </svg>
 
 @@@
 
 <svg xmlns="http://www.w3.org/2000/svg">
     <g color="red"/>
+    <g color="red"/>
 </svg>
+
+@@@
+
+{ "shorthex": false }