Skip to content
Browse files

Merge pull request #14 from nlco/master

(new) Exposed ignoreCase as an API option
  • Loading branch information...
2 parents 5e7a202 + 8c32dd8 commit e41e14d13372f1d2b7f9b47eec2b578bde9f45cc Alexis Sellier 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 e41e14d

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