Skip to content
Snippets Groups Projects
Commit 4c9216f1 authored by Daniel Perez's avatar Daniel Perez
Browse files

Merge branch 'slb/dperez50/allow-dot-datasetpath' into 'master'

feat: allow dot in dataset path

See merge request !554
parents b8554d22 3ce3985f
No related branches found
No related tags found
1 merge request!554feat: allow dot in dataset path
Pipeline #152806 failed
......@@ -92,10 +92,10 @@ export class Params {
this.checkParam(path, fieldName, required, 'string');
if (!path.match(/^[\/A-Za-z0-9_-]*$/g)) {
if (!path.match(/^[\/A-Za-z0-9_\.-]*$/g)) {
throw (Error.make(Error.Status.BAD_REQUEST, 'The \'' + fieldName +
'\' parameter ' + path + ' is in a wrong format.' +
'It should match the regex expression ^[\/A-Za-z0-9_-]*$'));
'It should match the regex expression ^[\/A-Za-z0-9_\.-]*$'));
}
}
......
......@@ -1092,8 +1092,8 @@
" return 'W' + result;\r",
"}\r",
"\r",
"postman.setEnvironmentVariable(\"dsx01\", makeID_dataset(16));\r",
"postman.setEnvironmentVariable(\"dsx02\", makeID_dataset(16));\r",
"postman.setEnvironmentVariable(\"dsx01\", makeID_dataset(16) + \"_.ds-x\");\r",
"postman.setEnvironmentVariable(\"dsx02\", makeID_dataset(16) + \"_.ds-x\");\r",
"var path = \"/\" + makeID_dataset(8) + \"/\" + makeID_dataset(4) + \"/\" + makeID_dataset(4) + \"/\"\r",
"postman.setEnvironmentVariable(\"testPath\", path);\r",
"postman.setEnvironmentVariable(\"testPathEncoded\", encodeURIComponent(path));"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment