Skip to content

Commit

Permalink
fix: do not encode commas
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgurney committed Oct 9, 2024
1 parent c9f2463 commit c2b0e52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Utils/ImportExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ function exportToCalloutList(
function encodeLinkForCallout(str: string): string {
return encodeURIComponent(str)
.replace(/%20/g, ' ')
.replace(/%2C/g, ',')
.replace(/%2F/g, '/')
.replace(/%3A/g, ':')
.replace(/%3F/g, '?')
Expand All @@ -179,6 +180,7 @@ function encodeLinkForCallout(str: string): string {
function encodeTextForCallout(str: string): string {
return encodeURIComponent(str)
.replace(/%20/g, ' ')
.replace(/%2C/g, ',')
.replace(/%2F/g, '/')
.replace(/%3A/g, ':')
.replace(/%3F/g, '?')
Expand Down

0 comments on commit c2b0e52

Please sign in to comment.