mirror of
https://github.com/LBRYFoundation/curate.git
synced 2025-08-23 17:37:25 +00:00
Update util.js
This commit is contained in:
parent
1cdbcb2bc3
commit
0f8a133153
1 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ Util.resolveToClaimID = (arg) => {
|
|||
if (/^[a-f0-9]{40}$/.test(arg))
|
||||
return arg;
|
||||
else if (/^lbry:\/\/@?[\w-]+#([a-f0-9]{40})$/.test(arg))
|
||||
return arg.replace(/^<@!?(\d{17,18})>$/, '$1');
|
||||
return arg.replace(/^lbry:\/\/@?[\w-]+#([a-f0-9]{40})$/, '$1');
|
||||
else return null;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue