Skip to content

Commit

Permalink
Merge pull request Expensify#706 from software-mansion-labs/brtqkr/41…
Browse files Browse the repository at this point in the history
…107-empty-blockquotes

Allow empty blockquotes
  • Loading branch information
stitesExpensify authored Jun 4, 2024
2 parents c5b8623 + 5131c1b commit 9d221a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ExpensiMark.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ export default class ExpensiMark {
const regex = /^(?:&gt;)+ +(?! )(?![^<]*(?:<\/pre>|<\/code>))([^\v\n\r]+)/gm;
const replaceFunction = (g1) => replacement(g1, shouldKeepRawInput);
if (shouldKeepRawInput) {
return textToProcess.replace(regex, replaceFunction);
const rawInputRegex = /^(?:&gt;)+ +(?! )(?![^<]*(?:<\/pre>|<\/code>))([^\v\n\r]*)/gm;
return textToProcess.replace(rawInputRegex, replaceFunction);
}
return this.modifyTextForQuote(regex, textToProcess, replacement);
},
Expand Down

0 comments on commit 9d221a6

Please sign in to comment.