From 019cfcadea52899f82f6304aca85be758890cb03 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 13 Sep 2016 12:09:55 +0200 Subject: [PATCH] [sso] fix endpoint regexp --- app/assets/javascripts/directives/validators.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ->