mirror of https://github.com/djcb/mu.git
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:
parent
0dab2b0faf
commit
1585b933fb
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue