diff --git a/app/assets/javascripts/directives/validators.coffee b/app/assets/javascripts/directives/validators.coffee index 71f19c80a..871b6e947 100644 --- a/app/assets/javascripts/directives/validators.coffee +++ b/app/assets/javascripts/directives/validators.coffee @@ -18,7 +18,7 @@ Application.Directives.directive 'url', [ -> Application.Directives.directive 'endpoint', [ -> - ENDPOINT_REGEXP = /^\/([-._~:?#\[\]@!$&'()*+,;=%\w]+\/?)*$/ + ENDPOINT_REGEXP = /^\/?([-._~:?#\[\]@!$&'()*+,;=%\w]+\/?)*$/ { require: 'ngModel' link: (scope, element, attributes, ctrl) ->