fix double quote escape in path selector
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Timo Hocker 2020-07-24 08:33:58 +02:00
parent 6207de8e5b
commit c0eb113036
2 changed files with 3 additions and 2 deletions

View File

@ -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')

View File

@ -1,6 +1,6 @@
{
"name": "@sapphirecode/console-app",
"version": "2.1.3",
"version": "2.1.4",
"main": "dist/lib/index.js",
"author": {
"name": "Timo Hocker",