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 | |
| parent | b8f31f606af880ddc3eb89b0837ef9ae49da1f99 (diff) | |
| download | faker-a1936938574f574ecc137d9f718a48a2256e49c9.tar.xz faker-a1936938574f574ecc137d9f718a48a2256e49c9.zip | |
infra(unicorn): escape-case (#2469)
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/git/index.ts | 2 | ||||
| -rw-r--r-- | src/modules/helpers/index.ts | 2 | ||||
| -rw-r--r-- | src/modules/internet/index.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/git/index.ts b/src/modules/git/index.ts index ec73c149..cbbeb351 100644 --- a/src/modules/git/index.ts +++ b/src/modules/git/index.ts @@ -2,7 +2,7 @@ import type { Faker } from '../..'; import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions'; import { deprecated } from '../../internal/deprecated'; -const nbsp = '\u00a0'; +const nbsp = '\u00A0'; /** * Module to generate git related entries. 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 } diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index 947edfba..42d05c55 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -636,7 +636,7 @@ export class InternetModule { // First remove simple accents etc result = result .normalize('NFKD') //for example è decomposes to as e + ̀ - .replace(/[\u0300-\u036f]/g, ''); // removes combining marks + .replace(/[\u0300-\u036F]/g, ''); // removes combining marks result = [...result] .map((char) => { |
