Skip to content

Commit

Permalink
fix: sluggify only removes spaces and converts to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
sriramkanakam87 committed Dec 16, 2024
1 parent 1a6a85c commit 3e1958d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions resources/views/livewire/bubble-frequency-plot.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ function slugify(text) {
.toLowerCase()
.trim()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
}
// Get container dimensions
Expand Down

0 comments on commit 3e1958d

Please sign in to comment.