Skip to content

Commit c390700

Browse files
fix(schema/absolutePaths): make absolute paths case insensitive
1 parent 46dc08e commit c390700

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎schemas/ajv.absolutePath.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = (ajv) => ajv.addKeyword("absolutePath", {
1717
type: "string",
1818
compile(expected, schema) {
1919
function callback(data) {
20-
const passes = expected === /^(?:[A-Z]:\\|\/)/.test(data);
20+
const passes = expected === /^(?:[A-Za-z]:\\|\/)/.test(data);
2121
if(!passes) {
2222
callback.errors = [getErrorFor(expected, data, schema)];
2323
}

0 commit comments

Comments
 (0)