summaryrefslogtreecommitdiff
path: root/source/libs/utils.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-06-22 13:20:26 +0800
committerGravatar GitHub <noreply@github.com> 2019-06-22 13:20:26 +0800
commitbb094f2d7ebbcad474559cfd5565d400c8dc7605 (patch)
tree75e30e1164b1fbdf83b5ba5998e1ae7f4f29db71 /source/libs/utils.ts
parentd50e0fb803e9806a1740b5c98b2caccf3986606d (diff)
downloadrefined-github-bb094f2d7ebbcad474559cfd5565d400c8dc7605.tar.gz
refined-github-bb094f2d7ebbcad474559cfd5565d400c8dc7605.tar.zst
refined-github-bb094f2d7ebbcad474559cfd5565d400c8dc7605.zip
Update dependencies and linting (#2163)19.6.22
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};
};