X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-text-utils.c;h=f529d184673968aa8636aea89401748f19e5d220;hp=c054a5e2dfffc4d7567a12789f2b7532b98db4ee;hb=ed0f4872e0f92fae59976bebb6b0508fb09c091f;hpb=206b438aa9012c7c4c70d76fb547ce3b3223de73 diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index c054a5e..f529d18 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -1218,7 +1218,7 @@ modest_text_utils_validate_domain_name (const gchar *domain) { gboolean valid = FALSE; regex_t rx; - const gchar* domain_regex = "^[a-z0-9]([.]?[a-z0-9-])*[a-z0-9]$"; + const gchar* domain_regex = "^([a-z0-9-]*[a-z0-9]\\.)+[a-z0-9-]*[a-z0-9]$"; g_return_val_if_fail (domain, FALSE);