Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
/ js-client Public archive

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gerald-wicks-unvoid committed Jun 8, 2022
1 parent fd5d15b commit 80be283
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/value-objects/regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export type RawRegex = string;
export const toRegex = (raw: RawRegex): Regex => {
const flags = takeRightWhile(raw, char => char !== '/').join('');
const source = raw.substr(1, raw.length - (flags.length + 2));

return new RegExp(source, flags);
};

Expand Down

0 comments on commit 80be283

Please sign in to comment.