veliovgroup / flow-router

🚦 Carefully extended flow-router for Meteor
https://packosphere.com/ostrio/flow-router-extra
BSD 3-Clause "New" or "Revised" License
202 stars 29 forks source link

Add missing or pipe | operator to pathRegExp #60

Closed arichter83 closed 5 years ago

arichter83 commented 5 years ago

I want to use optional pre defined prefixes like these:

var group = FlowRouter.group({
  prefix: "/:partner(one|two|three)?"
})
group.route("/", {name: "base", ...)
group.route("/create", {name: "create", ...)

For this the pipe | is missing in the Router.pathRegExp.