fix: replaces only the first occurrence of '&'

This commit is contained in:
Hintay 2024-10-24 01:46:43 +09:00
parent 4f25a0c670
commit 18b36e6ef9
No known key found for this signature in database
GPG key ID: 120FC7FF121F2F2D

View file

@ -47,7 +47,7 @@ function urlJoin(...args: string[]) {
.replace(/^file:/, 'file:/')
.replace(/\/(\?|&|#[^!])/g, '$1')
.replace(/\?/g, '&')
.replace('&', '?')
.replaceAll('&', '?')
}
function fromNow(t: string) {