Forráskód Böngészése

fix: replaces only the first occurrence of '&'

Hintay 6 hónapja
szülő
commit
18b36e6ef9
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/src/lib/helper/index.ts

+ 1 - 1
app/src/lib/helper/index.ts

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