diff --git a/src/helpers/constants.js b/src/helpers/constants.js index 4b72745..3afe34d 100644 --- a/src/helpers/constants.js +++ b/src/helpers/constants.js @@ -83,34 +83,9 @@ export const PHRASE_REGEX = new RegExp( /^([a-zA-Z]+\s){11,}([a-zA-Z]+)$/ ) export const ALIAS_REGEX = new RegExp( - /^[a-zA-Z0-9]{1,}$/ - // Needs support added for Dashes, Underscores & Periods + /^[a-zA-Z0-9]{1,}([a-zA-Z0-9_.\-]+[a-zA-Z0-9])?$/ ) export const DASH_URI_REGEX = new RegExp( /^(?:web\+)?(?dash)(?:[:])(?:\/\/)?(?
X[a-zA-Z0-9]{33})?(?:(?:[?])(?.+))?/, 'ig' ) - - -// const DASH_URI_REGEX = new RegExp( -// /(?dash)(?:\:)(?:\/\/)?(?
X[1-9A-HJ-NP-Za-km-z]{33})?(?:[?])(?.+)?$/, -// 'ig' -// ) - -// const DASH_URI_REGEX = new RegExp( -// /(?dash)(?:\:)(?:\/\/)?(?
X[1-9A-HJ-NP-Za-km-z]{33})?(?:[?])(?.+)?$/, -// 'ig' -// ) - -// const DASH_URI_REGEX = new RegExp( -// /^(?:web\+)?(?dash)(?:\:)(?:\/\/)?(?
.+)?(?(?:[?])([a-zA-Z_-]+)(?:[=])([a-zA-Z0-9,_\-]+)(?:[&])?)+/, -// 'ig' -// ) - -// ^((?:web\+)?dash:)(?:\/{0,2})?(.+)$ -// (?:web\+dash:)?(?:\/{0,2})?(.+) -// ^(?:(web\+)?dash:)(?:\/{0,2})?(.+)$ - -// if (uri.match(/^((web\+)?dash:)(\/\/)?(.+)/ig)) { -// result = parseDashURI(uri) -// } \ No newline at end of file