diff options
author | Jason Hollingsworth <jhworth.developer@gmail.com> | 2013-12-23 20:01:38 -0600 |
---|---|---|
committer | Jason Hollingsworth <jhworth.developer@gmail.com> | 2013-12-23 20:01:38 -0600 |
commit | 405492e90c4804dc327df73e9b8052abeef53703 (patch) | |
tree | e513dd414f48f7fe6145a044d9ff9c5c9757f20d /lib | |
parent | 055b3c4dd649075a1df75cc24d6b38248112ebf5 (diff) | |
download | gitlab-ce-405492e90c4804dc327df73e9b8052abeef53703.tar.gz |
Fixed issue with `bundle exec rake routes` not running.
Wrap regex comments in (?#comment) construct.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/regex.rb | 22 |
1 files 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 - (?<!\.lock) # (rule #1) - (?<![\/.]) # (rule #6-7) + [^\000-\040\177~^:?*\[]+ (?# rule #4-5) + (?# doesn't end with) + (?<!\.lock) (?# rule #1) + (?<![\/.]) (?# rule #6-7) }x end |