aboutsummaryrefslogtreecommitdiff
path: root/src/modules/finance
diff options
context:
space:
mode:
authorShinigami <[email protected]>2023-05-01 11:20:12 +0200
committerGitHub <[email protected]>2023-05-01 09:20:12 +0000
commitec1ca128b8b4ee5b0d1d77a1dd18d40792173c27 (patch)
tree5406238150f1c96e18e23791c32b39415371d188 /src/modules/finance
parenta8dc7e07f6d5ee2ae38724ba5d503d7b88bd7147 (diff)
downloadfaker-ec1ca128b8b4ee5b0d1d77a1dd18d40792173c27.tar.xz
faker-ec1ca128b8b4ee5b0d1d77a1dd18d40792173c27.zip
chore: improve regex usage (#2108)
Diffstat (limited to 'src/modules/finance')
-rw-r--r--src/modules/finance/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/finance/index.ts b/src/modules/finance/index.ts
index 32b04795..4add0243 100644
--- a/src/modules/finance/index.ts
+++ b/src/modules/finance/index.ts
@@ -834,7 +834,7 @@ export class FinanceModule {
const normalizedIssuer = issuer.toLowerCase();
if (normalizedIssuer in localeFormat) {
format = this.faker.helpers.arrayElement(localeFormat[normalizedIssuer]);
- } else if (issuer.match(/#/)) {
+ } else if (/#/.test(issuer)) {
// The user chose an optional scheme
format = issuer;
} else {