From a5899a828367d0ff16534771c561e44ae7af632d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 17 Feb 2011 15:18:37 +0300 Subject: Fix parsing emails with '_' symbol. Fix adding metric symbol. --- src/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/url.c') diff --git a/src/url.c b/src/url.c index 3db6b05b6..de916188f 100644 --- a/src/url.c +++ b/src/url.c @@ -1117,7 +1117,7 @@ url_email_start (const gchar *begin, const gchar *end, const gchar *pos, url_mat if (pos > begin && *pos == '@') { /* Try to extract it with username */ p = pos - 1; - while (p > begin && (is_domain (*p) || *p == '.')) { + while (p > begin && (is_domain (*p) || *p == '.' || *p == '_')) { p --; } if (!is_domain (*p)) { -- cgit v1.2.3