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

Fixes the uses of caret(^) in rewrite regex #1588

Merged
merged 3 commits into from
Sep 1, 2020
Merged

Fixes the uses of caret(^) in rewrite regex #1588

merged 3 commits into from
Sep 1, 2020

Conversation

choyri
Copy link
Contributor

@choyri choyri commented Jun 17, 2020

Fixes #1573

When use QuoteMeta^ will be replaced to \^, and than out of action as regex element.

@codecov
Copy link

codecov bot commented Jun 17, 2020

Codecov Report

Merging #1588 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1588      +/-   ##
==========================================
+ Coverage   85.23%   85.24%   +0.01%     
==========================================
  Files          28       28              
  Lines        2181     2183       +2     
==========================================
+ Hits         1859     1861       +2     
  Misses        208      208              
  Partials      114      114              
Impacted Files Coverage Δ
middleware/rewrite.go 71.42% <100.00%> (+2.19%) ⬆️

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 d324506...3dbd5dc. Read the comment docs.

@lammel lammel self-assigned this Jul 23, 2020
Copy link
Contributor

@lammel lammel left a comment

Choose a reason for hiding this comment

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

Please check on the minor comments I added.

middleware/rewrite.go Outdated Show resolved Hide resolved
middleware/rewrite.go Outdated Show resolved Hide resolved
@lammel
Copy link
Contributor

lammel commented Aug 31, 2020

Sorry for being late, going to review again soon.

@lammel lammel merged commit cf2fcad into labstack:master Sep 1, 2020
@lammel
Copy link
Contributor

lammel commented Sep 1, 2020

@choyri Thanks for your contribution and cleaning up the PR

@choyri choyri deleted the bugfix/rewrite branch September 2, 2020 02:43
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.

Rewrite middleware in v4.1.16 no longer supports matching beginning of path
3 participants