Merge pull request #1331 from cptran777/urn-dolla-dolla-validator

Modify regex test for urn to allow dollar signs in pathname
This commit is contained in:
Charlie Tran 2018-08-20 16:28:18 -07:00 committed by GitHub
commit 2509b1ce77
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