fix: convert param to string in slugify

fixes adding users to privilege table
This commit is contained in:
Barış Soner Uşaklı
2019-10-17 18:55:56 -04:00
parent 9b308e4b07
commit 441dd86d29
2 changed files with 7 additions and 1 deletions

View File

@@ -351,7 +351,7 @@
if (!str) {
return '';
}
str = str.replace(utils.trimRegex, '');
str = String(str).replace(utils.trimRegex, '');
if (utils.isLatin.test(str)) {
str = str.replace(utils.invalidLatinChars, '-');
} else {