summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 6b0d22a9f..b8e5e54cc 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -789,7 +789,7 @@ sub ask_users {
callbacks => {
focus_out => sub {
if ($_[0] eq 0) {
- $u->{name} ||= lc first($u->{realname} =~ /((\w|-)+)/);
+ $u->{name} ||= lc first($u->{realname} =~ /([\w-]+)/);
}
},
complete => $verif,