summaryrefslogtreecommitdiff
path: root/source/libs/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/libs/utils.ts')
-rw-r--r--source/libs/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libs/utils.ts b/source/libs/utils.ts
index f3a7b2c8..8e1ba559 100644
--- a/source/libs/utils.ts
+++ b/source/libs/utils.ts
@@ -50,7 +50,7 @@ export const getRef = (): string | undefined => {
};
export const parseTag = (tag: string): {version: string; namespace: string} => {
- const [, namespace = '', version = ''] = tag.match(/(?:(.*)@)?([^@]+)/) || [];
+ const [, namespace = '', version = ''] = /(?:(.*)@)?([^@]+)/.exec(tag) || [];
return {namespace, version};
};