static: fix sidebar active not working with search/pagination

This commit is contained in:
Jens Langhammer 2020-11-21 21:23:40 +01:00
parent 4bd433d69e
commit 1ed392c53c
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@ export class AdminSideBar extends LitElement {
console.log(`Ignoring ${a}`); console.log(`Ignoring ${a}`);
return; return;
} }
rawValue = `^${parsedURL.hash.slice(1, Infinity)}$`; rawValue = `^${parsedURL.hash.slice(1, Infinity)}`;
} }
const regexp = RegExp(rawValue); const regexp = RegExp(rawValue);
this.paths.push({ anchor: a, match: regexp }); this.paths.push({ anchor: a, match: regexp });