MCPcopy Create free account
hub / github.com/CommE2E/comm / createMessageQuote

Function createMessageQuote

lib/shared/markdown.js:385–388  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

383const ensRegex: RegExp = /^.{3,}\.eth$/;
384
385function createMessageQuote(message: string): string {
386 // add `>` to each line to include empty lines in the quote
387 return message.replace(/^/gm, '> ');
388}
389
390function createMessageReply(message: string): string {
391 return createMessageQuote(message) + '\n\n';

Callers 2

getCommbotMessageFunction · 0.90
createMessageReplyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected