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

Make pathRegExp overridable #26

Closed nicooprat closed 7 years ago

nicooprat commented 7 years ago

Resolves https://github.com/VeliovGroup/flow-router/issues/25

import { FlowRouter } from 'meteor/ostrio:flow-router-extra'

FlowRouter.pathRegExp = /(:[\w\(\)\\\+\*\.\?\[\]]+)+/g // Dashes `-` are also path separators

FlowRouter.group({
  ...
})
nicooprat commented 7 years ago

To be continued here: https://github.com/VeliovGroup/flow-router/pull/27