Merge pull request #1334 from cptran777/urn-validator-equality-issues

Allow for equals sign in urn validator
This commit is contained in:
Charlie Tran 2018-08-21 12:54:50 -07:00 committed by GitHub
commit bc8ce0508a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ import { DatasetPlatform, Fabric, isDatasetFabric } from 'wherehows-web/constant
* Path segment in a urn. common btw WH and LI formats
* @type {RegExp}
*/
const urnPath = /[\w.$\-\/{}+()\s\*]+/;
const urnPath = /[\w.$\-\/{}+()\s=\*]+/;
/**
* Matches a url string with a `urn` query. urn query with letters or underscore segment of any length greater
* than 1 followed by colon and 3 forward slashes and a segment containing letters, {, }, _ or /, or none