slug
slug copied to clipboard
Add possibility to set custom separator
Not sure if I want to add this functionality. I saw some forks that have basically only one additional commit with changing separator.
Pros:
- well, ability to set custom separator
Cons:
- another global variable (too late to break people code)
-
IsSlug
is probably slower - bug with regexp: compilation is happening too early so separator for it is always
-
Will leave it open for now, maybe someone have some feedback.
Shit, one more bug now with defaultSub
s initialized with init
...