gitlab-org--gitlab-foss/app/views/devise
Timothy Andrew 78b6d6624b Allow registering users where the username contains dots (.).
Javascript does not support the negative lookbehind assertion (?<!) used
in the Ruby regex (to disallow usernames ending in `.git` or `.atom`.

Getting the client side code to fully support this format is
non-trivial, since we'd either have to heavily complicate the
regex used, or modify the frontend code to support more complex
validation schemes (it currently uses HTML5 validations).

The pragmatic choice is to create a
`Gitlab::Regex::NAMESPACE_REGEX_STR_SIMPLE` regex to serve as a
Javascript-compatible version of `NAMESPACE_REGEX_STR`.

The client-side code will not display an error for usernames ending in
`.git` and `.atom`, but these will be caught by the server-side
validation.
2016-11-18 11:47:37 +05:30
..
confirmations Change show-gl-field-errors to gl-show-field-errors 2016-11-02 11:35:21 +01:00
mailer
passwords Change show-gl-field-errors to gl-show-field-errors 2016-11-02 11:35:21 +01:00
registrations
sessions Change show-gl-field-errors to gl-show-field-errors 2016-11-02 11:35:21 +01:00
shared Allow registering users where the username contains dots (.). 2016-11-18 11:47:37 +05:30
unlocks Change show-gl-field-errors to gl-show-field-errors 2016-11-02 11:35:21 +01:00