From 8d0690c5c768415a5dae1155c236f7650ea894cf Mon Sep 17 00:00:00 2001 From: Nicolas Bouilleaud Date: Wed, 17 Dec 2014 15:26:43 +0100 Subject: Support names starting with a digit or _ for projects and users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is what’s actually allowed when creating a user or a project in gitlab. --- CHANGELOG | 1 + lib/gitlab/markdown.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index dae32953cd9..6bd93b8cd4b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -23,6 +23,7 @@ v 7.8.1 - Fix urls for the issues when relative url was enabled - Add Bitbucket omniauth provider. - Add Bitbucket importer. + - Support referencing issues to a project whose name starts with a digit v 7.8.0 - Fix access control and protection against XSS for note attachments and other uploads. diff --git a/lib/gitlab/markdown.rb b/lib/gitlab/markdown.rb index a1fd794aed2..d85c2ee4f2d 100644 --- a/lib/gitlab/markdown.rb +++ b/lib/gitlab/markdown.rb @@ -121,7 +121,7 @@ module Gitlab text end - NAME_STR = '[a-zA-Z][a-zA-Z0-9_\-\.]*' + NAME_STR = '[a-zA-Z0-9_][a-zA-Z0-9_\-\.]*' PROJ_STR = "(?#{NAME_STR}/#{NAME_STR})" REFERENCE_PATTERN = %r{ -- cgit v1.2.1