1.5.0 broke the behavior when collapsing dashes in some cases:
I use the following test cases.
expect(slugify("day---night")).toBe("day-night"); // Works
expect(slugify("day night")).toBe("day-night"); // Works
expect(slugify("day + night")).toBe("day-night"); // Broken in ^1.5.0, but working in <=1.4.7, when using extend as described below
This is how I extended slugify.
slugify.extend({ "+": "-" }); // Broken in ^1.5.0, but working in <=1.4.7
// Note: The following works as expected, however: { "+": " " }
1.5.0 broke the behavior when collapsing dashes in some cases:
I use the following test cases.
This is how I extended slugify.