mirror of
https://github.com/osmarks/website
synced 2024-12-23 08:30:44 +00:00
fix regex
This commit is contained in:
parent
62eca4af08
commit
d7b33c2753
@ -98,7 +98,7 @@ url: /infipage/p
|
||||
var prev = document.querySelector("#prev"), next = document.querySelector("#next"), count = document.querySelector("#pagecount"), main = document.querySelector("#main"), error = document.querySelector("#error")
|
||||
function loadPage() {
|
||||
try {
|
||||
var afterSlash = /infipage\/([A-Za-z0-9_=-]*)/.exec(window.location.pathname)[1]
|
||||
var afterSlash = /infipage\/([A-Za-z0-9_~.:@-]*)/.exec(window.location.pathname)[1]
|
||||
page = decodeBignum(afterSlash)
|
||||
} catch(e) {
|
||||
console.warn("Page Number Decode Failure")
|
||||
|
Loading…
Reference in New Issue
Block a user