Match building URLs with query strings

This commit is contained in:
Tom Russell 2018-10-04 22:43:50 +01:00
parent 002b6a4a80
commit 29783c9b33

View File

@ -15,7 +15,7 @@ function strictParseInt(value) {
function parseBuildingURL(url){ function parseBuildingURL(url){
const re = /^\/building\/([^\/]+)(\/edit)?.html$/; const re = /^\/building\/([^\/]+)(\/edit)?.html/;
const matches = re.exec(url); const matches = re.exec(url);
if (matches && matches.length >= 2) { if (matches && matches.length >= 2) {