diff options
| author | ST-DDT <[email protected]> | 2023-10-18 00:38:23 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-17 22:38:23 +0000 |
| commit | a1936938574f574ecc137d9f718a48a2256e49c9 (patch) | |
| tree | c1fa8569501a44494f70732f2ea70f039564673f /src/modules/helpers | |
| parent | b8f31f606af880ddc3eb89b0837ef9ae49da1f99 (diff) | |
| download | faker-a1936938574f574ecc137d9f718a48a2256e49c9.tar.xz faker-a1936938574f574ecc137d9f718a48a2256e49c9.zip | |
infra(unicorn): escape-case (#2469)
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 } |
