antfu / vscode-iconify

🙂 Iconify IntelliSense for VS Code
https://marketplace.visualstudio.com/items?itemName=antfu.iconify
MIT License
453 stars 33 forks source link

fix: remove regex global flag, close #53 #55

Closed loukamb closed 1 year ago

loukamb commented 1 year ago

Description

Fixes #53. Intellisense breaks because of a bad global (g) flag on the regular expression used to extract components from the icon string, which ends up accidentally inserting the delimiter (e.g. :) into the icon collection name, causing the collection lookup to fail.

Linked Issues

https://github.com/antfu/vscode-iconify/issues/53

Additional context