Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !5922

Merged
Created Dec 24, 2013 by Administrator@rootOwner

Fixed issue with `bundle exec rake routes` not running.

  • Overview 2
  • Commits 1
  • Changes 1

Created by: ghost

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(?<!\.lock)#(rule#1)(?<![\/.])#(rule#6-7)))(?:\.([^\/.?]+))?$/

This change wraps the comments so this doesn't happen. According to the docs, it should have worked before, but it didn't. This way does.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix/rake-routes