speakingurl icon indicating copy to clipboard operation
speakingurl copied to clipboard

Empty seperator does not work as option

Open ghost opened this issue 7 years ago • 2 comments

const input = "-ä ß üö,."; const separator = ""; let res = getSlug(input, { separator: separator}); console.log(res); // ae-ss-ueoe res = getSlug(input, separator); console.log(res); // -aessueoe

When the seperator is not empty it gives correct results (-ae+ss+ueoe).

ghost avatar Jan 10 '18 16:01 ghost

Hi, I just made a change that tackles this. See #125 .

kwiatkk1 avatar Oct 19 '18 11:10 kwiatkk1

This fix is still not available in any speakingurl release ?

chartrand22 avatar Mar 05 '21 00:03 chartrand22