example/js/svg.js
function fullHex(hex) {
  return hex.length == 4 ?
    [ '#',
      hex.substring(1, 2), hex.substring(1, 2)
    , hex.substring(2, 3), hex.substring(2, 3)
    , hex.substring(3, 4), hex.substring(3, 4)
    ].join('') : hex
}
function fullHex(hex) {
  return hex.length == 4 ?
    [ '#',
      hex.substring(1, 2), hex.substring(1, 2)
    , hex.substring(2, 3), hex.substring(2, 3)
    , hex.substring(3, 4), hex.substring(3, 4)
    ].join('') : hex
}
function fullHex ( hex ) { return hex . length == 4 ? [ '#' , hex . substring ( 1 , 2 ) , hex . substring ( 1 , 2 ) , hex . substring ( 2 , 3 ) , hex . substring ( 2 , 3 ) , hex . substring ( 3 , 4 ) , hex . substring ( 3 , 4 ) ] . join ( '' ) : hex }
Ensure to six-based hex
Ensure to six - based hex