slugify fixed

This commit is contained in:
Senad Uka
2016-03-16 12:13:47 +01:00
parent 7e62881d16
commit 70ee58e989

View File

@@ -29,6 +29,9 @@ module.exports = {
PikpayKey: "Ribica",
Slugify: function(text) {
if(!text) {
text = "";
}
return text.toString().toLowerCase()
.replace(/š/g,'s')
.replace(/[čć]/g,'c')