gitlab-org--gitlab-foss/app/views/devise/shared
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
..
_links.erb
_omniauth_box.html.haml
_sign_in_link.html.haml
_signin_box.html.haml
_signup_box.html.haml Allow registering users where the username contains dots (.). 2016-11-18 11:47:37 +05:30
_tab_single.html.haml
_tabs_ldap.html.haml Fix no "Register" tab if ldap auth is enabled (#24038) 2016-11-10 17:24:42 +01:00
_tabs_normal.html.haml Only show register tab if signup enabled. 2016-10-24 17:50:19 +02:00