victorb / trymodule

➰ It's never been easier to try nodejs modules!
1.14k stars 29 forks source link

Use global regex to replace unwanted characters #9

Closed zzarcon closed 8 years ago

zzarcon commented 8 years ago

This is a small change for replace unwanted characters of the package name, also ensures to replace all the occurrences of the string, so, having this name "abc-de.ab--.cde-":

Before "abc_de_ab--.cde-" Now "abc_de_ab___cde_"

Thanks for the module!

victorb commented 8 years ago

Thanks a bunch for this, much nicer than before :)

zzarcon commented 8 years ago

You welcome!