aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_selector
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-03-14 17:38:48 +0100
committerfiaxh <git@lightrise.org>2019-03-14 17:39:31 +0100
commit952ac9548402744ac9b13917255b9e461a96abe5 (patch)
tree0aa4c1c87b0da5961450cf024b1684e264d13c09 /main/src/ui/conversation_selector
parentfb504308d03e078422422b57323f89ae86dac466 (diff)
downloaddino-952ac9548402744ac9b13917255b9e461a96abe5.tar.gz
dino-952ac9548402744ac9b13917255b9e461a96abe5.zip
Use regex literals, fixes some compiler warnings
Diffstat (limited to 'main/src/ui/conversation_selector')
-rw-r--r--main/src/ui/conversation_selector/conversation_row.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/conversation_selector/conversation_row.vala b/main/src/ui/conversation_selector/conversation_row.vala
index 2d41d044..0d0db23a 100644
--- a/main/src/ui/conversation_selector/conversation_row.vala
+++ b/main/src/ui/conversation_selector/conversation_row.vala
@@ -136,7 +136,7 @@ public class ConversationRow : ListBoxRow {
nick_label.label = last_message.direction == Message.DIRECTION_SENT ? _("Me") + ": " : "";
}
- message_label.label = Markup.escape_text((new Regex("\\s+")).replace_literal(last_message.body, -1, 0, " "));
+ message_label.label = Markup.escape_text((/\s+/).replace_literal(last_message.body, -1, 0, " "));
break;
case FileItem.TYPE:
FileItem file_item = last_content_item as FileItem;