From c1e6f8340060a10866764602eb70a4c7ef32f365 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 11:47:11 +0000 Subject: [PATCH 1/2] Bump markupsafe from 2.1.1 to 2.1.3 Bumps [markupsafe](https://github.com/pallets/markupsafe) from 2.1.1 to 2.1.3. - [Release notes](https://github.com/pallets/markupsafe/releases) - [Changelog](https://github.com/pallets/markupsafe/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/markupsafe/compare/2.1.1...2.1.3) --- updated-dependencies: - dependency-name: markupsafe dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index dcd9c9d..df044b6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,6 +5,6 @@ build pytest pytest-md validate-pyproject -MarkupSafe==2.1.1 +MarkupSafe==2.1.3 Markdown==3.3.7 types-Markdown From 08e08706b65ac4fc330777912670df404e51aa9b Mon Sep 17 00:00:00 2001 From: Mark Nottingham Date: Tue, 19 Sep 2023 13:21:31 +0100 Subject: [PATCH 2/2] Fix CTEXT regex Fixes #8. --- httplint/syntax/rfc7230.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httplint/syntax/rfc7230.py b/httplint/syntax/rfc7230.py index 1915770..12b8694 100644 --- a/httplint/syntax/rfc7230.py +++ b/httplint/syntax/rfc7230.py @@ -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 ] )