|
@@ -1389,8 +1389,8 @@ export const slugify = (str: string): string => {
|
|
|
.replace(/[\u0300-\u036f]/g, '')
|
|
|
// 3. Replace any sequence of whitespace with a single hyphen
|
|
|
.replace(/\s+/g, '-')
|
|
|
- // 4. Remove all characters except alphanumeric characters and hyphens
|
|
|
- .replace(/[^a-zA-Z0-9-]/g, '')
|
|
|
+ // 4. Remove all characters except alphanumeric characters, hyphens, and underscores
|
|
|
+ .replace(/[^a-zA-Z0-9-_]/g, '')
|
|
|
// 5. Convert to lowercase
|
|
|
.toLowerCase()
|
|
|
);
|