From 454bfc602780c1eb98912615ccf35f312a97a9d2 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 15 Sep 2010 17:47:33 +0200 Subject: [PATCH] Allow - in usernames --- ud-sync-accounts-to-afs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ud-sync-accounts-to-afs b/ud-sync-accounts-to-afs index 4fccaa9..1cc478b 100755 --- a/ud-sync-accounts-to-afs +++ b/ud-sync-accounts-to-afs @@ -123,7 +123,7 @@ def filter_have(a): if n == 'anonymous': # keep account, so remove from the have list a.del_name(n) continue - m = re.match('[0-9a-z]+$', n) + m = re.match('[0-9a-z-]+$', n) if not m: # weird name, probably has dots like weasel.admin etc. a.del_name(n) continue -- 2.20.1