mdgriffith / elm-optimize-level-2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Breaking on packages that use `TSFoster/elm-sha1`

bengolds opened this issue · comments

If you try to use functions from TSFoster/elm-sha1, elm-optimize-level-2 will crash with a semi-cryptic error.

It appears that the regex inside of inlineWrappedFunctions is getting a false-positive on the A1 in $TSFoster$elm_sha1$SHA1$loophelp.

Making the regex a bit more specific should fix the issue.

commented

Thank you so much for reporting and digging in, I will try to take a look asap!

Published as 0.1.4 🎉

🚀 ✨ Fantastic! Thanks for the fix.