Skip to content

Commit

Permalink
Merge pull request #9 from qwe7002/master
Browse files Browse the repository at this point in the history
Fixed the issue where spaces were incorrectly converted to +
  • Loading branch information
cwxiaos authored Dec 16, 2024
2 parents 0769768 + 832637c commit 10d6f31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,15 @@ class Handler {

let title = parameters.title || undefined
if (title) {
title = decodeURIComponent(title)
title = decodeURIComponent(title.replaceAll("+","%20"))
}
let subtitle = parameters.subtitle || undefined
if (subtitle) {
subtitle = decodeURIComponent(subtitle)
subtitle = decodeURIComponent(subtitle.replaceAll("+","%20"))
}
let body = parameters.body || undefined
if (body) {
body = decodeURIComponent(body)
body = decodeURIComponent(body.replaceAll("+","%20"))
}

if (!title && !subtitle && !body) {
Expand Down Expand Up @@ -531,4 +531,4 @@ class Util {
}
}

const util = new Util()
const util = new Util()

0 comments on commit 10d6f31

Please # to comment.