Skip to content

Fix regex for IPv4 hosts - #49

Merged
sigmavirus24 merged 1 commit into
python-hyper:masterfrom
sethmlarson:ipv4-hosts
Feb 20, 2019
Merged

sigmavirus24 merged 1 commit into
python-hyper:masterfrom
sethmlarson:ipv4-hosts

Conversation

@sethmlarson

Copy link
Copy Markdown
Member

Closes #48.

@codecov-io

codecov-io commented Feb 20, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #49 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #49   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          11     11           
  Lines         711    711           
=====================================
  Hits          711    711
Impacted Files Coverage Δ
src/rfc3986/abnf_regexp.py 100% <100%> (ø) ⬆️

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 84a88d3...03bfa65. Read the comment docs.

@sigmavirus24
sigmavirus24 merged commit 9a87fd6 into python-hyper:master Feb 20, 2019
DIGIT = '0123456789'
# https://tools.ietf.org/html/rfc3986#section-2.3
UNRESERVED = UNRESERVED_CHARS = ALPHA + DIGIT + '._!-'
UNRESERVED = UNRESERVED_CHARS = ALPHA + DIGIT + r'._!-'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is r necessary here?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should it be r'\._!-'?

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.

3 participants