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

fix(opts): filter now optional and matches whole url #23

Merged
merged 1 commit into from
Jan 21, 2021

Conversation

zetlen
Copy link
Owner

@zetlen zetlen commented Jan 21, 2021

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • HASTILY_STREAMABLE_PATH_REGEXP now matches the whole URL (making it compatible
    with Express middleware paths)

  • hasSupportedExtension now tests against the Express req.originalUrl instead
    of req.path, so it can be used in early Express middlewares before the
    req.path is populated

Replaces and closes #22.

* HASTILY_STREAMABLE_PATH_REGEXP now matches the whole URL (making it compatible
  with Express middleware paths)
* hasSupportedExtension now tests against the Express `req.originalUrl` instead
  of `req.path`, so it can be used in early Express middlewares before the
  `req.path` is populated
@codecov-io
Copy link

codecov-io commented Jan 21, 2021

Codecov Report

Merging #23 (d6ac389) into master (7547639) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #23   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          251       251           
  Branches        49        49           
=========================================
  Hits           251       251           

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 7547639...d6ac389. Read the comment docs.

@zetlen zetlen merged commit bb35c6f into master Jan 21, 2021
@zetlen zetlen deleted the zetlen/regex_fix branch January 21, 2021 21:54
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.

2 participants