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

[now dev] Strip prefixed / when doing routes matching #2361

Merged
merged 5 commits into from May 27, 2019

Conversation

TooTallNate
Copy link
Member

@TooTallNate TooTallNate commented May 18, 2019

The prefixed / is implicit when matching routes, so strip them so that they are optional. This matches the behavior in production.

@codecov-io
Copy link

codecov-io commented May 23, 2019

Codecov Report

Merging #2361 into canary will increase coverage by 0.03%.
The diff coverage is 45.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##           canary    #2361      +/-   ##
==========================================
+ Coverage    10.9%   10.94%   +0.03%     
==========================================
  Files         250      250              
  Lines        9031     9036       +5     
  Branches      991      993       +2     
==========================================
+ Hits          985      989       +4     
  Misses       7945     7945              
- Partials      101      102       +1
Impacted Files Coverage Δ
src/commands/dev/lib/dev-router.ts 75.86% <45.45%> (+0.39%) ⬆️

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 7bd40f0...049a293. Read the comment docs.

The prefixed `/` is implicit when matching routes, so strip them
so that they are optional. This matches the behavior in production.
@TooTallNate TooTallNate force-pushed the fix/now-dev-routes-without-slash-src-prefix branch from 4cf65e0 to 027bebb Compare May 25, 2019 00:44
@TooTallNate TooTallNate requested a review from styfle May 25, 2019 00:56
@TooTallNate TooTallNate merged commit 04c11e2 into canary May 27, 2019
@TooTallNate TooTallNate deleted the fix/now-dev-routes-without-slash-src-prefix branch May 27, 2019 19:17
TooTallNate added a commit that referenced this pull request Jun 5, 2019
* [now dev] Strip prefixed `/` when doing routes matching

The prefixed `/` is implicit when matching routes, so strip them
so that they are optional. This matches the behavior in production.

* Fix unit tests

* More readable

* Add unit test
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.

None yet

3 participants