From 405492e90c4804dc327df73e9b8052abeef53703 Mon Sep 17 00:00:00 2001 From: Jason Hollingsworth Date: Mon, 23 Dec 2013 20:01:38 -0600 Subject: [PATCH] Fixed issue with `bundle exec rake routes` not running. Wrap regex comments in (?#comment) construct. --- lib/gitlab/regex.rb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index eb6b91e26b5..93e013ab1b3 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -24,20 +24,20 @@ module Gitlab %r{ (?! - # doesn't begins with - \/| # (rule #6) - # doesn't contain + (?# doesn't begins with) + \/| (?# rule #6) + (?# doesn't contain) .*(?: - [\/.]\.| # (rule #1,3) - \/\/| # (rule #6) - @\{| # (rule #8) - \\ # (rule #9) + [\/.]\.| (?# rule #1,3) + \/\/| (?# rule #6) + @\{| (?# rule #8) + \\ (?# rule #9) ) ) - [^\000-\040\177~^:?*\[]+ # (rule #4-5) - # doesn't end with - (?