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 Use gitlab_config intead of Gitlab.config.gitlab in views 2013-10-17 22:11:41 +03:00
_omniauth_box.html.haml Unbreak all the tests relying on one login-box. 2016-10-15 08:28:52 +02:00
_sign_in_link.html.haml Make UX upgrades to SignIn/Register views. 2016-10-15 08:27:21 +02:00
_signin_box.html.haml Contain normal signin in loginbox. 2016-10-18 11:12:41 +02:00
_signup_box.html.haml Allow registering users where the username contains dots (.). 2016-11-18 11:47:37 +05:30
_tab_single.html.haml Use Ruby 1.9 syntax in tab_single def and usage. 2016-10-15 08:28:54 +02:00
_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