Skip to content

Commit

Permalink
Ignore single smart quotes when slugifying string
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Oct 30, 2023
1 parent 89bd9d5 commit 13cc855
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/js/plugins/slugify.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export default {
// Remove apostrophes in all languages
custom["'"] = "";

// Remove smart single quotes
custom["’"] = "";

return getSlug(text, {
separator: glue || '-',
lang,
Expand Down

0 comments on commit 13cc855

Please sign in to comment.