From e883f8172203d77ab09d79679bea0256906ed9a5 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Mon, 3 Jun 2019 10:24:46 -0400 Subject: [PATCH] Fix export --- dist/bundle.es.js | 1 + src/index.js | 1 + src/lbryURI.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index fb5eae1..7039cf4 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -3766,6 +3766,7 @@ exports.notificationsReducer = notificationsReducer; exports.parseQueryParams = parseQueryParams; exports.parseURI = parseURI; exports.regexAddress = regexAddress; +exports.regexInvalidURI = regexInvalidURI; exports.savePosition = savePosition; exports.searchReducer = searchReducer; exports.selectAbandoningIds = selectAbandoningIds; diff --git a/src/index.js b/src/index.js index a85a007..848d0e5 100644 --- a/src/index.js +++ b/src/index.js @@ -23,6 +23,7 @@ export { // common export { Lbry }; export { + regexInvalidURI, regexAddress, parseURI, buildURI, diff --git a/src/lbryURI.js b/src/lbryURI.js index 8292606..9b805f7 100644 --- a/src/lbryURI.js +++ b/src/lbryURI.js @@ -2,7 +2,7 @@ const channelNameMinLength = 1; const claimIdMaxLength = 40; // 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}]/gu); +export const regexInvalidURI = (exports.regexInvalidURI = /[=&#:$@%?\u{0000}-\u{0008}\u{000b}-\u{000c}\u{000e}-\u{001F}\u{D800}-\u{DFFF}\u{FFFE}-\u{FFFF}]/gu); export const regexAddress = /^(b|r)(?=[^0OIl]{32,33})[0-9A-Za-z]{32,33}$/; /**