Skip to content

Commit e9d6dc6

Browse files
committed
allow also the ':' char
1 parent 88235e8 commit e9d6dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/desktop_notifications/desktopnotify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ DesktopNotify::DesktopNotify(Settings& settings_)
4747
QString DesktopNotify::sanitize_text_for_notifications(const QString& input_text)
4848
{
4949
QString output_text = QString(input_text);
50-
output_text.replace(QRegularExpression("[^a-zA-Z0-9 _]"), "_"); // allow only a A-Z and 0-9 and "_" and " " chars
50+
output_text.replace(QRegularExpression("[^a-zA-Z0-9 _:]"), "_"); // allow only a A-Z and 0-9 and "_" and " " and ":" chars
5151
qDebug() << "sanitize_text_for_notifications: input:" << input_text << "output:" << output_text;
5252
return output_text;
5353
}

0 commit comments

Comments
 (0)