question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to remove dash at the end of the slug

See original GitHub issue

With

const slug = slugify('test !!!', {
  strict: true
})

// slug => 'test-'

Is it possible to allow to remove this latest dash ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:28 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Trottcommented, May 8, 2021

Faced this issue today. Any update on when a new release coming with this fix?

I just published slugify@1.5.2 with trimming of leading and trailing replacement characters as the default behavior.

2reactions
Trottcommented, May 11, 2021

slugify 1.5.3 published with the fix. Thanks for reporting the issue with strict mode!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing hyphens from slug display : r/Wordpress - Reddit
Hello, I am an extreme n00b at WordPress. I'm updating my company's website. Our theme is great but unfortunately it displays the dashes...
Read more >
Get nice name of category from slug (remove dashes of ...
I think OP means that he want the name of the taxonomy, if he indeed only wants to strip dashes and lower case...
Read more >
Fastest way to remove hyphens from a string - Stack Overflow
Thanks! edit: I am using jQuery, so I guess .replace(a,b) does the trick (replacing a with b) numberNoHyphens = number.replace( ...
Read more >
How to Remove -2 from WordPress URL (Permalink)
Learn how to remove -2 from the permalink (URL) of a WordPress ... Scroll down to the Slug box at the bottom of...
Read more >
How To Remove Dashes in Excel: A Step-by-Step Guide
Highlight the cells you want to remove dashes from by clicking and dragging your cursor over them. Select the "Text" button from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found