FWeinb / grunt-svgstore

Merge svgs from a folder
MIT License
920 stars 94 forks source link

ID parsing stops after first period #84

Closed stefan-schweiger closed 9 years ago

stefan-schweiger commented 9 years ago

When your files contain names with periods (appbar.add.svg, appbar.add.multiple.svg, ...) the id parsing will only take the filename before the first period, so the result looks like this:

<svg xmlns="http://www.w3.org/2000/svg">
    <symbol viewBox="0 0 76.00 76.00" id="appbar">
        ...
    </symbol>
    <symbol viewBox="0 0 76.00 76.00" id="appbar">
        ...
    </symbol>
    ...
</svg>

Please make it at least configurable what the file extension is or what pattern should be used for the id generation.

stefan-schweiger commented 9 years ago

Whoops should have read the documentation better there is convertNameToId, sorry for that you can close the issue!