Skip to content

Commit

Permalink
Duplicate spaces now count towards the display message length
Browse files Browse the repository at this point in the history
  • Loading branch information
Mm2PL authored and pajlada committed Aug 14, 2021
1 parent 75458a1 commit c4cfcc0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions src/widgets/splits/SplitInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c4cfcc0

Please sign in to comment.