allow multisig addresses

multisig addresses begin with an r - https://explorer.lbry.io/address/rH9eJbSrWoBUtkXA3hvkrysbG8T2CHGKMm
This commit is contained in:
Thomas Zarebczan 2019-03-17 18:30:17 -04:00 committed by GitHub
parent f140db38dd
commit 9353604225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ const channelNameMinLength = 1;
const claimIdMaxLength = 40;
export const regexInvalidURI = /[^A-Za-z0-9-]/g;
export const regexAddress = /^b(?=[^0OIl]{32,33})[0-9A-Za-z]{32,33}$/;
export const regexAddress = /^(b|r)(?=[^0OIl]{32,33})[0-9A-Za-z]{32,33}$/;
/**
* Parses a LBRY name into its component parts. Throws errors with user-friendly