From f6ff783d6c2c61d67647bc6788edf53fd50df9c0 Mon Sep 17 00:00:00 2001 From: cptran777 Date: Mon, 20 Aug 2018 14:18:49 -0700 Subject: [PATCH] Modify regex test for urn to allow dollar signs in pathname --- wherehows-web/app/utils/validators/urn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wherehows-web/app/utils/validators/urn.ts b/wherehows-web/app/utils/validators/urn.ts index 4e1575c5b4..419c787257 100644 --- a/wherehows-web/app/utils/validators/urn.ts +++ b/wherehows-web/app/utils/validators/urn.ts @@ -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