Skip to content

Commit 9ee0f2e

Browse files
authored
(MODULES-10892) Update name.pp (#353)
* Update name.pp bugfix: MODULES-10892
1 parent cc2e789 commit 9ee0f2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/type_aliases/user_name_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
describe 'Accounts::User::Name' do
66
describe 'Valid user name values' do
77
[
8+
'1-bad-dude', # Depending on the distribution, this might be an issue, however should be left to the distributions
89
'a',
910
'_', # Technically allowed but probably shouldn't be.
1011
'bravo',
@@ -22,7 +23,6 @@
2223

2324
describe 'Invalid user name values' do
2425
[
25-
'1-bad-dude', # Cannot begin with a digit.
2626
'.hidden', # Cannot begin with a period.
2727
'$money', # Cannot begin with a dollar-sign.
2828
'-kilroy_was_here-', # Cannot begin with a dash.

types/user/name.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
# Many installations also allow capitals or periods, for example to separate first and
99
# last names.
1010
#
11-
type Accounts::User::Name = Pattern[/\A[a-zA-Z_]([a-zA-Z.0-9_-]{0,30}[a-zA-Z0-9_$-])?\z/]
11+
type Accounts::User::Name = Pattern[/\A[a-zA-Z0-9_]([a-zA-Z.0-9_-]{0,30}[a-zA-Z0-9_$-])?\z/]

0 commit comments

Comments
 (0)