refactor: move zero width replacement to a function (#5594)
This commit is contained in:
@@ -182,4 +182,11 @@ constexpr std::optional<std::decay_t<T>> makeConditionedOptional(bool condition,
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
/// @brief Unescapes zero width joiners (ZWJ; U+200D) from Twitch messages
|
||||
///
|
||||
/// Older Chatterino versions escape ZWJ with an ESCAPE TAG (U+E0002), following
|
||||
/// https://mm2pl.github.io/emoji_rfc.pdf. This function unescapes all tags with
|
||||
/// a ZWJ. See also: https://github.com/Chatterino/chatterino2/issues/3384.
|
||||
QString unescapeZeroWidthJoiner(QString escaped);
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user