aboutsummaryrefslogtreecommitdiff
path: root/src/shared/utils/re.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/utils/re.ts')
-rw-r--r--src/shared/utils/re.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/utils/re.ts b/src/shared/utils/re.ts
index 7db9091..34f4fa6 100644
--- a/src/shared/utils/re.ts
+++ b/src/shared/utils/re.ts
@@ -1,4 +1,4 @@
-const fromWildcard = (pattern) => {
+const fromWildcard = (pattern: string): RegExp => {
let regexStr = '^' + pattern.replace(/\*/g, '.*') + '$';
return new RegExp(regexStr);
};