Update util.js

This commit is contained in:
Snazzah 2020-09-22 20:23:20 -05:00 committed by GitHub
parent 1cdbcb2bc3
commit 0f8a133153
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};