Skip to content

Commit 56d09ab

Browse files
authored
Merge pull request webpack#4533 from michael-ciniawsky/schema
fix(schema/absolutePaths): make absolute paths case insensitive
2 parents b5451ef + c390700 commit 56d09ab

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)