From c4cfcc09f109470bab17ff4de3ec605be6b70146 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Tue, 13 Jul 2021 18:00:15 +0200 Subject: [PATCH] Duplicate spaces now count towards the display message length --- CHANGELOG.md | 1 + src/widgets/splits/SplitInput.cpp | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6cb014f609..76ee758205c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Minor: Remove TwitchEmotes.com attribution and the open/copy options when right-clicking a Twitch Emote. (#2214, #3136) - Minor: Strip leading @ and trailing , from username in /user and /usercard commands. (#3143) - Minor: Display a system message when reloading subscription emotes to match BTTV/FFZ behavior (#3135) +- Minor: Duplicate spaces now count towards the display message length. (#3002) - Bugfix: Notifications for moderators about other moderators deleting messages can now be disabled. (#3121) - Bugfix: Moderation mode and active filters are now preserved when opening a split as a popup. (#3113, #3130) - Bugfix: Fixed a bug that caused all badge highlights to use the same color. (#3132, #3134) diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index 26888f365eb..3afe8596092 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -639,9 +639,6 @@ void SplitInput::editTextChanged() this->textChanged.invoke(text); text = text.trimmed(); - static QRegularExpression spaceRegex("\\s\\s+"); - text = text.replace(spaceRegex, " "); - text = app->commands->execCommand(text, this->split_->getChannel(), true); }