slugify fixed
This commit is contained in:
@@ -29,6 +29,9 @@ module.exports = {
|
|||||||
PikpayKey: "Ribica",
|
PikpayKey: "Ribica",
|
||||||
|
|
||||||
Slugify: function(text) {
|
Slugify: function(text) {
|
||||||
|
if(!text) {
|
||||||
|
text = "";
|
||||||
|
}
|
||||||
return text.toString().toLowerCase()
|
return text.toString().toLowerCase()
|
||||||
.replace(/š/g,'s')
|
.replace(/š/g,'s')
|
||||||
.replace(/[čć]/g,'c')
|
.replace(/[čć]/g,'c')
|
||||||
|
|||||||
Reference in New Issue
Block a user