Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix replaced variable for josecebe#54, josecebe#23
  • Loading branch information
pavelthq committed Nov 4, 2015
1 parent 192658e commit 5a89c6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jquery.twbsPagination.js
Expand Up @@ -42,7 +42,7 @@

if (this.options.href) {
var match, regexp = this.options.href.replace(/[-\/\\^$*+?.|[\]]/g, '\\$&');
regexp = regexp.replace(this.options.hrefVariable, '(\\d+)');
regexp = regexp.replace(this.options.pageVariable, '(\\d+)');
if ((match = new RegExp(regexp, 'i').exec(window.location.href)) != null) {
this.options.startPage = parseInt(match[1], 10);
}
Expand Down
2 changes: 1 addition & 1 deletion jquery.twbsPagination.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a89c6f

Please sign in to comment.