Page MenuHomePhabricator

D5715.id18796.diff
No OneTemporary

D5715.id18796.diff

diff --git a/lib/shared/messages/text-message-spec.js b/lib/shared/messages/text-message-spec.js
--- a/lib/shared/messages/text-message-spec.js
+++ b/lib/shared/messages/text-message-spec.js
@@ -84,9 +84,11 @@
messageTitle({ messageInfo, markdownRules }) {
const { text } = messageInfo;
+ const textReplacingSpoilers = text.replace(/\|\|(.+?)\|\|/g, '⬛⬛⬛');
const parser = SimpleMarkdown.parserFor(markdownRules);
- const ast = parser(text, { disableAutoBlockNewlines: true });
-
+ const ast = parser(textReplacingSpoilers, {
+ disableAutoBlockNewlines: true,
+ });
return getFirstNonQuotedRawLine(ast).trim();
},

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 1, 9:35 AM (20 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2604581
Default Alt Text
D5715.id18796.diff (663 B)

Event Timeline