Skip to content

Commit

Permalink
Allow capital letters in history
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Feb 22, 2019
1 parent 4afc28f commit 6e7974e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/history/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const History = {
}
},
slugify(text) {
return text.toString().toLowerCase()
return text.toString()
.replace(/\s+/g, '-')
.replace(/[^\w-]+/g, '')
.replace(/--+/g, '-')
Expand Down

0 comments on commit 6e7974e

Please sign in to comment.