Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
Make basePath matching case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyWebb committed Oct 5, 2016
1 parent daff566 commit 6c65880
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dist/ko-component-router.js
Expand Up @@ -1090,8 +1090,8 @@ return /******/ (function(modules) { // webpackBootstrap
url = url.replace('./', '/');
} else {
var p = this;
while (p && url.indexOf(p.config.base) > -1) {
url = url.replace(p.config.base, '');
while (p && url.toLowerCase().indexOf(p.config.base.toLowerCase()) > -1) {
url = url.replace(new RegExp(p.config.base, 'i'), '');
p = p.$parent;
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/ko-component-router.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/dist/bundle.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/context.js
Expand Up @@ -326,8 +326,8 @@ var Context = function () {
url = url.replace('./', '/');
} else {
var p = this;
while (p && url.indexOf(p.config.base) > -1) {
url = url.replace(p.config.base, '');
while (p && url.toLowerCase().indexOf(p.config.base.toLowerCase()) > -1) {
url = url.replace(new RegExp(p.config.base, 'i'), '');
p = p.$parent;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/context.js
Expand Up @@ -285,8 +285,8 @@ export default class Context {
url = url.replace('./', '/')
} else {
let p = this
while (p && url.indexOf(p.config.base) > -1) {
url = url.replace(p.config.base, '')
while (p && url.toLowerCase().indexOf(p.config.base.toLowerCase()) > -1) {
url = url.replace(new RegExp(p.config.base, 'i'), '')
p = p.$parent
}
}
Expand Down

0 comments on commit 6c65880

Please sign in to comment.