gitlabhq/gitlabhq — pull request #5922 by jhollingsworth (2013-12-24 02:05:58+00:00)
Title: Fixed issue with `bundle exec rake routes` not running.

Wrap regex comments in (?#comment) construct.

Running `bundle exec rake routes` caused the following error to be raised:

rake aborted!
end pattern with unmatched parenthesis: /^\/(([a-zA-Z.0-9_\-]+\/[a-zA-Z.0-9_\-]+))\/branches\/((?x-mi:(?!#doesn'tbeginswith\/|#(rule#6)#doesn'tcontain.*(?:[\/.]\.|#(rule#1,3)\/\/|#(rule#6)@\{|#(rule#8)\\#(rule#9)))[^\000-\040\177~^:?*\[]+#(rule#4-5)#doesn'tendwith(?