angular-slugify icon indicating copy to clipboard operation
angular-slugify copied to clipboard

Plus or + or ''

Open chriskolenko opened this issue 11 years ago • 1 comments

Anyway to allow a +

To the best of my memory it's a valid url character.

chriskolenko avatar Dec 27 '14 12:12 chriskolenko

Maybe something like this:

    s = s.replace(/[^\w\s-$.+!'(),]/g, "").trim().toLowerCase();

Based on the allowed URL characters: http://stackoverflow.com/questions/1856785/characters-allowed-in-a-url

chriskolenko avatar Dec 27 '14 12:12 chriskolenko