1
0
mirror of https://github.com/osmarks/website synced 2024-12-23 16:40:31 +00:00

fix regex

This commit is contained in:
osmarks 2020-03-15 18:36:22 +00:00
parent 62eca4af08
commit d7b33c2753

View File

@ -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")