lib: Allow hostname of newbase to match alnum

Possible hostnames might have digits and - in them.  Crude regex to
allow hostnames that start with alnum followed by alnum or "-".

Fixes #1399
This commit is contained in:
Derek Schrock 2019-11-16 22:53:28 -05:00
parent 0dab2b0faf
commit 1585b933fb
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ test_mu_maildir_get_new_path_new (void)
assert_matches_regexp (newbase,
"\\d+\\."
"[[:xdigit:]]{16}\\."
"[[:alpha:]]+(:2,.*)?");
"[[:alnum:]][[:alnum:]-]+(:2,.*)?");
g_free (newbase);
g_free(str);
}