Updates
This commit is contained in:
+1
-1
@@ -6,4 +6,4 @@
|
||||
* slugify("Yes!") // "yes"
|
||||
* slugify("Hello!!! World!") // "hello-world"
|
||||
*/
|
||||
export default function slugify(str: string): string;
|
||||
export default function slugify(str?: string): string;
|
||||
|
||||
Vendored
+2
@@ -12,6 +12,8 @@ exports.default = slugify;
|
||||
*/
|
||||
function slugify(str) {
|
||||
try {
|
||||
if (!str)
|
||||
return "";
|
||||
return String(str)
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
|
||||
Reference in New Issue
Block a user