fix double quote escape in path selector
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -21,7 +21,8 @@ export class PathType extends TypeValidation {
|
||||
if (typeof value !== 'string')
|
||||
throw new Error (`invalid type for ${this.option_type}`);
|
||||
|
||||
const escaped = value.replace (/\\$/u, '');
|
||||
const escaped = value.replace (/\\$/u, '')
|
||||
.replace (/"$/u, '');
|
||||
if (!await fs.pathExists (escaped))
|
||||
throw new Error ('path does not exist');
|
||||
if (this.option_type === 'path')
|
||||
|
Reference in New Issue
Block a user