Skip to content

Empty seperator does not work as option #116

Open

Description

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).

Activity

  1. self-assigned this
    on Mar 20, 2018
  2. kwiatkk1 commented on Oct 19, 2018

    @kwiatkk1
    Contributor

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

  3. chartrand22 commented on Mar 5, 2021

    @chartrand22

    This fix is still not available in any speakingurl release ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions