Skip to content
Browse files

exposed ignoreCase as an API option

  • Loading branch information...
1 parent 5e7a202 commit 8c32dd8aede4352c76dfa275efa0426f00b26f9a nlco committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/journey.js
View
3 lib/journey.js
@@ -29,6 +29,7 @@ journey.version = [0, 4, 0];
journey.options = {
strict: false,
strictUrls: true,
+ ignoreCase: false,
api: 'http'
};
@@ -85,7 +86,7 @@ journey.Router.prototype = {
args = Array.prototype.slice.call(arguments).filter(function (a) { return a }),
// Defaults
pattern = this.paths.length ? '' : /.*/,
- ignoreCase = false,
+ ignoreCase = this.options.ignoreCase,
method = journey.Router.methods.slice(0),
constraints = [],
extension = this.options.extension ? '(?:' + this.options.extension + ')?' : '';

0 comments on commit 8c32dd8

Please sign in to comment.
Something went wrong with that request. Please try again.