Skip to content

Commit

Permalink
fix: check mentions array
Browse files Browse the repository at this point in the history
  • Loading branch information
duhoang00 committed Feb 28, 2024
1 parent ee5b99a commit 2e19b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/simple-mover/transfers/CodaExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class CodaExporter implements IExporter {
if (!this.outlineApis) throw Error('No outline token')

const mentions = markdownContent.match(CODA_MENTION_REPLACEMENT_REGEX)
if (!mentions?.length) return
if (!mentions) return

const emailsSet = new Set<string>(mentions.map(mention => {
const email = mention.match(/(?<=mailto:)[^)]+/)
Expand Down

0 comments on commit 2e19b57

Please sign in to comment.