Skip to content

Commit

Permalink
fix: scheme parse wrong (close alist-org/alist#5639)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Dec 6, 2023
1 parent f6a910d commit 919ff5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/str.ts
Expand Up @@ -66,7 +66,7 @@ export const convertURL = (scheme: string, args: ConvertURLArgs) => {
args.d_url = d.toString()
}
ans = ans.replace(/\$[eb_]*url/, (old) => {
const op = old.match(/e|b/)
const op = old.match(/[eb]/g)
let u = args.raw_url
if (op) {
for (const o of op.reverse()) {
Expand All @@ -80,7 +80,7 @@ export const convertURL = (scheme: string, args: ConvertURLArgs) => {
return u
})
ans = ans.replace(/\$[eb_]*durl/, (old) => {
const op = old.match(/e|b/)
const op = old.match(/[eb]/g)
let u = args.d_url
if (op) {
for (const o of op.reverse()) {
Expand Down

0 comments on commit 919ff5d

Please sign in to comment.