fix: match optional whitespace in quote regex

This commit is contained in:
Paul Makles committed 2022-07-18 12:59:17 +01:00
1 parent 084c90613f
commit 9807ef9c9a
1 file changed
+1 -1
+1 -1
View File
@@ -182,7 +182,7 @@ const Container = styled.div<{ largeEmoji: boolean }>`
/**
* Regex for matching execessive blockquotes
*/
const RE_QUOTE = /(^(?:>\s){5})[>\s]+(.*$)/gm;
const RE_QUOTE = /(^(?:>\s?){5})[>\s?]+(.*$)/gm;
/**
* Sanitise Markdown input before rendering