Fixed issue with bundle exec rake routes not running.

Wrap regex comments in (?#comment) construct.
This commit is contained in:
Jason Hollingsworth 2013-12-23 20:01:38 -06:00
parent 055b3c4dd6
commit 405492e90c

View file

@ -24,20 +24,20 @@ module Gitlab
%r{ %r{
(?! (?!
# doesn't begins with (?# doesn't begins with)
\/| # (rule #6) \/| (?# rule #6)
# doesn't contain (?# doesn't contain)
.*(?: .*(?:
[\/.]\.| # (rule #1,3) [\/.]\.| (?# rule #1,3)
\/\/| # (rule #6) \/\/| (?# rule #6)
@\{| # (rule #8) @\{| (?# rule #8)
\\ # (rule #9) \\ (?# rule #9)
) )
) )
[^\000-\040\177~^:?*\[]+ # (rule #4-5) [^\000-\040\177~^:?*\[]+ (?# rule #4-5)
# doesn't end with (?# doesn't end with)
(?<!\.lock) # (rule #1) (?<!\.lock) (?# rule #1)
(?<![\/.]) # (rule #6-7) (?<![\/.]) (?# rule #6-7)
}x }x
end end