Skip to content

Commit

Permalink
Fixed the issue where spaces were incorrectly converted to +
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe7002 authored Dec 16, 2024
1 parent 270d1fd commit 832637c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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.replaceAll("\\+","%20"))
title = decodeURIComponent(title.replaceAll("+","%20"))
}
let subtitle = parameters.subtitle || undefined
if (subtitle) {
subtitle = decodeURIComponent(subtitle.replaceAll("\\+","%20"))
subtitle = decodeURIComponent(subtitle.replaceAll("+","%20"))
}
let body = parameters.body || undefined
if (body) {
body = decodeURIComponent(body.replaceAll("\\+","%20"))
body = decodeURIComponent(body.replaceAll("+","%20"))
}

if (!title && !subtitle && !body) {
Expand Down

0 comments on commit 832637c

Please # to comment.