mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-25 15:35:02 +00:00
Add comment linking an issue that explains why the EscapedSymbolTextNodeMatcher is used
This commit is contained in:
@@ -264,6 +264,7 @@ internal static partial class MarkdownParser
|
|||||||
private static readonly IMatcher<MarkdownNode> EscapedSymbolTextNodeMatcher = new RegexMatcher<MarkdownNode>(
|
private static readonly IMatcher<MarkdownNode> EscapedSymbolTextNodeMatcher = new RegexMatcher<MarkdownNode>(
|
||||||
// Capture any "symbol/other" character or surrogate pair preceded by a backslash.
|
// Capture any "symbol/other" character or surrogate pair preceded by a backslash.
|
||||||
// This escapes them from matching for emoji.
|
// This escapes them from matching for emoji.
|
||||||
|
// https://github.com/Tyrrrz/DiscordChatExporter/issues/230
|
||||||
new Regex(@"\\(\p{So}|\p{Cs}{2})", DefaultRegexOptions),
|
new Regex(@"\\(\p{So}|\p{Cs}{2})", DefaultRegexOptions),
|
||||||
(_, m) => new TextNode(m.Groups[1].Value)
|
(_, m) => new TextNode(m.Groups[1].Value)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user