diff options
Diffstat (limited to 'src/modules/helpers')
| -rw-r--r-- | src/modules/helpers/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index 22d8491f..81007156 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -190,7 +190,7 @@ export class SimpleHelpersModule { slugify(string: string = ''): string { return string .normalize('NFKD') //for example è decomposes to as e + ̀ - .replace(/[\u0300-\u036f]/g, '') // removes combining marks + .replace(/[\u0300-\u036F]/g, '') // removes combining marks .replace(/ /g, '-') // replaces spaces with hyphens .replace(/[^\w.-]+/g, ''); // removes all non-word characters except for dots and hyphens } |
