Skip to content

Commit

Permalink
Escape back ticks characters
Browse files Browse the repository at this point in the history
  • Loading branch information
pf-mahmoud committed Jan 8, 2024
1 parent b1a3891 commit 8ce53aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function getGroupedIssues(rawValue, baseUrl) {
const key = value.key;
const url = baseUrl + "browse/" + key;
const fields = value.fields;
const summary = fields.summary.replace(/"/g, "`").replace(/'/g, "`");
const summary = fields.summary.replace(/"/g, "\`").replace(/'/g, "\`");
const type = fields.issuetype.name;
return new Issue(key, summary, type, url);
}).sort((a, b) => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function getGroupedIssues(rawValue: any, baseUrl: string): GroupedIssue[] {
const url = baseUrl + "browse/" + key

const fields = value.fields
const summary = (fields.summary as string).replace(/"/g, "`").replace(/'/g, "`")
const summary = (fields.summary as string).replace(/"/g, "\`").replace(/'/g, "\`")
const type = fields.issuetype.name

return new Issue(key, summary, type, url)
Expand Down

0 comments on commit 8ce53aa

Please sign in to comment.