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

Allow regular expressions to be used for route. #157

Merged
merged 5 commits into from
Oct 19, 2021

Conversation

mmillies
Copy link
Contributor

Closes #156

@changeset-bot
Copy link

changeset-bot bot commented Aug 10, 2021

⚠️ No Changeset found

Latest commit: cd8868a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link

codecov bot commented Aug 10, 2021

Codecov Report

Merging #157 (cd8868a) into master (0408c2e) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #157   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           80        81    +1     
=========================================
+ Hits            80        81    +1     
Impacted Files Coverage Δ
src/index.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0408c2e...cd8868a. Read the comment docs.

@mmillies
Copy link
Contributor Author

hi. any feedback on this would be appreciated.

if it hasn't been looked at for a reason, perhaps I can resolve any grievances to move it forward?

@hoangvvo
Copy link
Owner

hi. any feedback on this would be appreciated.

if it hasn't been looked at for a reason, perhaps I can resolve any grievances to move it forward?

My apology! There is no grievances or anything. I totally forgot about the PR.

If Regex is to supported in .use(), I think we should add that support for method routing (.get, .set, etc.) too. The only method that need to be modify is the add() method.

@mmillies
Copy link
Contributor Author

hi. any feedback on this would be appreciated.
if it hasn't been looked at for a reason, perhaps I can resolve any grievances to move it forward?

My apology! There is no grievances or anything. I totally forgot about the PR.

No worries.

If Regex is to supported in .use(), I think we should add that support for method routing (.get, .set, etc.) too. The only method that need to be modify is the add() method.

Makes sense. I'll make the modifications at some point in the next few days. Thanks.

@mmillies
Copy link
Contributor Author

updated. I'm open to any simplifications you can think of that might apply.

Copy link
Owner

@hoangvvo hoangvvo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some refactor I think that would make it clearer.

mmillies and others added 2 commits October 18, 2021 13:53
* instead excluding types, now including the expected type in the execution path.

Co-authored-by: Hoang <[email protected]>
* instead excluding types, now including the expected type in the execution path.

Co-authored-by: Hoang <[email protected]>
@mmillies mmillies requested a review from hoangvvo October 18, 2021 19:40
@hoangvvo
Copy link
Owner

Awesome! LGTM

@hoangvvo hoangvvo merged commit b3fede1 into hoangvvo:master Oct 19, 2021
@hoangvvo
Copy link
Owner

Released in v0.11.0!

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.

use() routes with RegExps should work.
2 participants