Skip to content

Commit bbc1898

Browse files
committed
user profile settings: fix checking that full name has at leats two words
1 parent c655352 commit bbc1898

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/settings/routes/profile/components/ProfileSettingsForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ProfileSettingsForm extends Component {
4545
} else if (name === 'firstNLastName') {
4646
validations = {
4747
// should have first and last name
48-
matchRegexp: /(.+)\s+(.+)/
48+
matchRegexp: /([^\s])\s+([^\s]+)/
4949
}
5050
}
5151
return (

0 commit comments

Comments
 (0)