elrumordelaluz / svgsprit.es

Public endpoint to generate SVG Sprites using svg-spreact

Home Page:https://svgsprit.es

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NaN in path

dinoboff opened this issue · comments

I have an issue with ionicons lock:
https://unpkg.com/ionicons@5.2.3/dist/svg/lock-closed-outline.svg

svgspirt.es converts it to:

<svg width="0" height="0" class="hidden">
  <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="lock-closed-outline">
    <title>Lock Closed</title>
    <path d="M336 208v-95a80 80 0 0-160 0 NaN" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path>
    <rect x="96" y="208" width="320" height="272" rx="48" ry="48" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></rect>
  </symbol>
</svg>`

svgspirt.es is struggling with the path:

<path d='M336 208v-95a80 80 0 00-160 0v95'> </path> => <path d="M336 208v-95a80 80 0 0-160 0 NaN > </path>"

Hi @dinoboff, thanks for open the Issue.

I am trying but can't reproduce. This is the result I get: d="M336 208v-95a80 80 0 00-160 0v95"

Screenshot 2020-10-12 at 12 30 25