Skip to content

Commit

Permalink
ia: plural handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Aug 30, 2022
1 parent a9b7a01 commit 7b850c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/ia/ui/SinglePageWorkflowDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,9 @@ function initSinglePageWorkflowDialog() {
this.data.fromUrls ?
this.data.sourceUrls.map(
( v, i ) => `${
i === this.data.sourceUrls.length - 1 ? 'and ' : ''
i === this.data.sourceUrls.length - 1 && i > 0 ? 'and ' : ''
}[${v}]`
).join( ', ' ) :
).join( this.data.sourceUrls.length > 2 ? ', ' : ' ' ) :
this.data.sourceText;
const comments = `${
( from || '' ).trim().length !== 0 ? 'from ' + from + '. ' : ''
Expand Down

0 comments on commit 7b850c0

Please sign in to comment.