diff options
Diffstat (limited to 'source/libs/utils.ts')
-rw-r--r-- | source/libs/utils.ts | 2 |
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}; }; |