Allow unicode characters in claim names.
See https://spec.lbry.com/#urls
This commit is contained in:
parent
a01b919c72
commit
bd26d7ba44
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
||||||
const channelNameMinLength = 1;
|
const channelNameMinLength = 1;
|
||||||
const claimIdMaxLength = 40;
|
const claimIdMaxLength = 40;
|
||||||
|
|
||||||
export const regexInvalidURI = /[^A-Za-z0-9-]/g;
|
// see https://spec.lbry.com/#urls
|
||||||
|
const regexInvalidURI = (exports.regexInvalidURI = /[=&#:$@%?\u{0000}-\u{0008}\u{000b}-\u{000c}\u{000e}-\u{001F}\u{D800}-\u{DFFF}\u{FFFE}-\u{FFFF}]/u);
|
||||||
export const regexAddress = /^(b|r)(?=[^0OIl]{32,33})[0-9A-Za-z]{32,33}$/;
|
export const regexAddress = /^(b|r)(?=[^0OIl]{32,33})[0-9A-Za-z]{32,33}$/;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue