mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
fix: match optional whitespace in quote regex
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user