Allow to remove dash at the end of the slug
See original GitHub issueWith
const slug = slugify('test !!!', {
strict: true
})
// slug => 'test-'
Is it possible to allow to remove this latest dash ?
Issue Analytics
- State:
- Created 2 years ago
- Comments:28 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just published slugify@1.5.2 with trimming of leading and trailing replacement characters as the default behavior.
slugify 1.5.3 published with the fix. Thanks for reporting the issue with
strict
mode!