michaelbazos / angular-feather

A-la-carte integration of Feather Icons in Angular applications
MIT License
155 stars 35 forks source link

fix the rendering of icons that have two or more sections in the name #90

Closed jefersonfc25 closed 4 months ago

jefersonfc25 commented 4 months ago

The uppercamelcase function was only considering simple names (activity, airplay, etc.). Icons with compound names (alert-triangle, arrow-down-circle, etc.) were displaying an error message in the console: image

I made a change to the function to also consider icons with compound names and added a unit test.