Skip to content

Commit

Permalink
correct windows paths must use \ and not /
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffin143 committed Jan 15, 2020
1 parent d8c74b6 commit e826575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schemas/ajv.absolutePath.js
Expand Up @@ -42,7 +42,7 @@ module.exports = ajv =>
// \\\\ - Windows network absolute path
// \/ - Unix-like OS absolute path
const isCorrectAbsolutePath =
expected === /^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(data);
expected === /^(?:[A-Za-z]:\\|\\\\|\/)/.test(data);
if (!isCorrectAbsolutePath) {
callback.errors = [getErrorFor(expected, data, schema)];
passes = false;
Expand Down

0 comments on commit e826575

Please sign in to comment.