Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3386964
D5212.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
886 B
Referenced Files
None
Subscribers
None
D5212.diff
View Options
diff --git a/lib/shared/message-utils.js b/lib/shared/message-utils.js
--- a/lib/shared/message-utils.js
+++ b/lib/shared/message-utils.js
@@ -407,10 +407,13 @@
return codeBlockRegex.exec(message) ? message.trimEnd() : message.trim();
}
-function createMessageReply(message: string): string {
+function createMessageQuote(message: string): string {
// add `>` to each line to include empty lines in the quote
- const quotedMessage = message.replace(/^/gm, '> ');
- return quotedMessage + '\n\n';
+ return message.replace(/^/gm, '> ');
+}
+
+function createMessageReply(message: string): string {
+ return createMessageQuote(message) + '\n\n';
}
function getMostRecentNonLocalMessageID(
@@ -556,6 +559,7 @@
createMediaMessageInfo,
stripLocalIDs,
trimMessage,
+ createMessageQuote,
createMessageReply,
getMostRecentNonLocalMessageID,
getMessageTitle,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 7:01 AM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2600042
Default Alt Text
D5212.diff (886 B)
Attached To
Mode
D5212: Split createMessageReply to createMessageReply and createMessageQuote
Attached
Detach File
Event Timeline
Log In to Comment