mobile fixes, fix bug when linking to anchor on home, docs

This commit is contained in:
Jacky Zhao
2023-08-06 17:09:29 -07:00
parent db6054a8c1
commit 028bcec62c
14 changed files with 134 additions and 24 deletions

View File

@ -228,7 +228,7 @@ function _isRelativeSegment(s: string): boolean {
return /^\.{0,2}$/.test(s)
}
function _stripSlashes(s: string): string {
export function _stripSlashes(s: string): string {
if (s.startsWith("/")) {
s = s.substring(1)
}