Skip to content

Commit

Permalink
Merge pull request webpack#4533 from michael-ciniawsky/schema
Browse files Browse the repository at this point in the history
fix(schema/absolutePaths): make absolute paths case insensitive
  • Loading branch information
sokra authored Mar 24, 2017
2 parents b5451ef + c390700 commit 56d09ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schemas/ajv.absolutePath.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = (ajv) => ajv.addKeyword("absolutePath", {
type: "string",
compile(expected, schema) {
function callback(data) {
const passes = expected === /^(?:[A-Z]:\\|\/)/.test(data);
const passes = expected === /^(?:[A-Za-z]:\\|\/)/.test(data);
if(!passes) {
callback.errors = [getErrorFor(expected, data, schema)];
}
Expand Down

0 comments on commit 56d09ab

Please sign in to comment.