Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Oct 22, 2023
1 parent 203ad9a commit 2ebfa30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const differences = ({ result, baseUrl }: { result: CompareOutput; baseUrl: stri
|:----------:|:----------:|:----------:|
${result.failedItems
.map(item => {
const filename = basename(item);
const filename = encodeURIComponent(basename(item));
const actual = baseUrl + 'actual/' + filename + '?raw=true';
const expected = baseUrl + 'expected/' + filename + '?raw=true';
const diff = baseUrl + 'diff/' + filename + '?raw=true';
Expand All @@ -87,7 +87,7 @@ const newItems = ({ result, baseUrl }: { result: CompareOutput; baseUrl: string
|:----------:|
${result.newItems
.map(item => {
const filename = basename(item);
const filename = encodeURIComponent(basename(item));
const img = baseUrl + 'actual/' + filename + '?raw=true';
return `| ![NewItem](${img}) |`;
})
Expand All @@ -107,7 +107,7 @@ const deletedItems = ({ result, baseUrl }: { result: CompareOutput; baseUrl: str
|:----------:|
${result.deletedItems
.map(item => {
const filename = basename(item);
const filename = encodeURIComponent(basename(item));
const img = baseUrl + 'expected/' + filename + '?raw=true';
return `| ![Deleted](${img}) |`;
})
Expand Down

0 comments on commit 2ebfa30

Please sign in to comment.