Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.path not working for route regex ([0-9]*) #654

Closed
wants to merge 2 commits into from
Closed

.path not working for route regex ([0-9]*) #654

wants to merge 2 commits into from

Conversation

philrennie
Copy link

See #653

Changes the regex that detects regexes in the .path prototype.
Allows for [ ] and - characters.

Will allow example route 
FlowRouter.route('/:year([0-9]*)?', { name: 'routename'})
to be correctly generated by 
FlowRouter.path('routename', { year: 2016 });

see #653
Will allow example route
FlowRouter.route('/:year([0-9]*)?', { name: 'routename'})
to be correctly generated by
FlowRouter.path('routename', { year: 2016 });

see #653
dr-dimitru added a commit to veliovgroup/flow-router that referenced this pull request Feb 23, 2017
 - Support regex ([0-9]*) in .path , see [PR
kadirahq#654](kadirahq#654)
dr-dimitru added a commit to veliovgroup/flow-router that referenced this pull request Feb 23, 2017
 - Fix for cases when route's param isn't String
 - Fix broken redirects in triggers
 - Fix exception on `new Route()` without arguments
 - Preserve `%` and `+` symbols in URI
 - Allow to use triggersEnter in Group without Array, see [PR
kadirahq#659](kadirahq#659)
 - Fix generation of URLs with a ROOT_URL containing a path, see [PR
kadirahq#691](kadirahq#691)
 - Support RegEx ([0-9]*) in .path, see [PR
kadirahq#654](kadirahq#654)
 - Fix nested groups on server, see [PR
kadirahq#663](kadirahq#663)
 - Same behavior for Server groups, as for groups on Client
 - Add auto-tests
 - NPM Dependencies update
@philrennie philrennie closed this Jun 22, 2018
@philrennie philrennie deleted the patch-1 branch August 24, 2020 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant