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

RegExp are not working #14

Closed
Kleak opened this issue Nov 1, 2016 · 0 comments
Closed

RegExp are not working #14

Kleak opened this issue Nov 1, 2016 · 0 comments
Labels

Comments

@Kleak
Copy link
Member

Kleak commented Nov 1, 2016

RegExp are not working because in the generated code they are missing inside the Route instanciation.

List<Route> _routes = <Route>[
  new Route(r"/:file", methods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]),
];

should be:

List<Route> _routes = <Route>[
  new Route(r"/:file", methods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], pathRegEx: {"file": "whatever here"}),
];
@Kleak Kleak added the bug label Nov 1, 2016
@Kleak Kleak closed this as completed in #16 Nov 2, 2016
Kleak pushed a commit that referenced this issue Jan 5, 2017
Merge pull request #60 from tejainece/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant