Updates
This commit is contained in:
@@ -21,7 +21,7 @@ export default function slugify(str?: string): string {
|
||||
.replace(/-{2,}/g, "-")
|
||||
.replace(/^-/, "")
|
||||
.replace(/-$/, "");
|
||||
} catch (/** @type {any} */ error: any) {
|
||||
} catch (error: any) {
|
||||
console.log(`Slugify ERROR: ${error.message}`);
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user