badges / shields

Concise, consistent, and legible badges in SVG and raster format

Home Page:https://shields.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: color.toLowerCase is not a function

sentry-io opened this issue · comments

Sentry Issue: SHIELDS-GT

TypeError: color.toLowerCase is not a function
  File "/usr/src/app/badge-maker/lib/color.js", line 52, in normalizeColor
    return `#${color.toLowerCase()}`
  File "/usr/src/app/badge-maker/lib/color.js", line 61, in toSvgColor
    const normalized = normalizeColor(color)
  File "/usr/src/app/lib/logos.js", line 104, in getSimpleIcon
    const svgColor = toSvgColor(color)
  File "/usr/src/app/lib/logos.js", line 139, in prepareNamedLogo
    getSimpleIcon({ name, color, style, size })
  File "/usr/src/app/core/base-service/coalesce-badge.js", line 168, in coalesceBadge
    logoSvgBase64 = prepareNamedLogo({
...
(2 additional frame(s) were not displayed)