aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-03-31 21:27:40 +0200
committerfiaxh <git@lightrise.org>2020-04-03 20:59:47 +0200
commit1c8e15c408f57d93461e6adb33c4c4415ac49267 (patch)
treeb99d62ed9eeda35fc697dd6b782c19d5beff6093
parent0af8526ab107fd4f1862db87cf26aff97940f322 (diff)
downloaddino-1c8e15c408f57d93461e6adb33c4c4415ac49267.tar.gz
dino-1c8e15c408f57d93461e6adb33c4c4415ac49267.zip
Fix message markup parsing for single characters
-rw-r--r--main/src/ui/util/helper.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala
index 4af2cf3c..78c8f527 100644
--- a/main/src/ui/util/helper.vala
+++ b/main/src/ui/util/helper.vala
@@ -370,7 +370,7 @@ public static string parse_add_markup(string s_, string? highlight_word, bool pa
for (int i = 0; i < markup_string.length; i++) {
string markup_esc = Regex.escape_string(markup_string[i]);
try {
- Regex regex = new Regex("(^|\\s)" + markup_esc + "(\\S.*?\\S|\\S)" + markup_esc);
+ Regex regex = new Regex("(^|\\s)" + markup_esc + "(\\S|\\S.*?\\S)" + markup_esc);
MatchInfo match_info;
regex.match(s.down(), 0, out match_info);
if (match_info.matches()) {