Skip to content

Commit

Permalink
Fix CTEXT regex
Browse files Browse the repository at this point in the history
Fixes #8.
  • Loading branch information
mnot committed Sep 19, 2023
1 parent 2d9c811 commit 08e0870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httplint/syntax/rfc7230.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ def __str__(self) -> str:
# / %x5D-7E ; ']'-'~'
# / obs-text

ctext = rf"(?: {HTAB} | {SP} | [\x21-\x27] | [\x2A-\x5b] | \x5D-\x7E | {obs_text} )"
ctext = rf"(?: {HTAB} | {SP} | [\x21-\x27] | [\x2A-\x5b] | [\x5D-\x7E] | {obs_text} )"

# comment = "(" *( ctext / quoted-pair / comment ) ")"

comment = rf"(?: \( (?: {ctext} | {quoted_pair} )* \) ) "
comment = rf"(?: \( (?: {ctext} | {quoted_pair} )* \) )"

# Via = 1#( received-protocol RWS received-by [ RWS comment ] )

Expand Down

0 comments on commit 08e0870

Please sign in to comment.