Modify regex test for urn to allow dollar signs in pathname

This commit is contained in:
cptran777 2018-08-20 14:18:49 -07:00
parent db4515e14e
commit f6ff783d6c

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