[polari] util: Match any nickname in identify command



commit e1d28fa1ee8878f7ce123c1c45a244371595ddfc
Author: Alexander Alzate Olaya <jhonnyalexander_91 yahoo es>
Date:   Sat Mar 4 19:08:39 2017 -0500

    util: Match any nickname in identify command
    
    Valid nicknames can support a wide variety of characters. By using
    non-whitespace character class we ensure to support valid nicknames
    while not lacking the regex performance.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771888

 src/lib/polari-util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lib/polari-util.c b/src/lib/polari-util.c
index 25a4c4d..c8d2dd0 100644
--- a/src/lib/polari-util.c
+++ b/src/lib/polari-util.c
@@ -69,7 +69,7 @@ polari_util_match_identify_message (const char  *message,
   stripped_text = g_strstrip (text);
 
   if (G_UNLIKELY (identify_message_regex == NULL))
-    identify_message_regex = g_regex_new ("^(identify|login) (?:(\\w+) )?(\\S+)$",
+    identify_message_regex = g_regex_new ("^(identify|login) (?:(\\S+) )?(\\S+)$",
                                           G_REGEX_OPTIMIZE | G_REGEX_CASELESS,
                                           0, NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]