Skip to content

Commit

Permalink
Merge pull request #763 from greenbone/update_validators
Browse files Browse the repository at this point in the history
Change: Update validators and disable strict_query
  • Loading branch information
n-thumann authored Oct 24, 2024
2 parents bae4399 + 210c494 commit 15eaaae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
27 changes: 7 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pontos = ">=22.7,<25.0"
codespell = "^2.0.0"
python-magic = "^0.4.25"
chardet = ">=4,<6"
validators = "0.20.0"
validators = "^0.34.0"
gitpython = "^3.1.31"
charset-normalizer = "^3.2.0"

Expand Down
2 changes: 1 addition & 1 deletion troubadix/plugins/script_xref_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def check_content(
for match in matches:
if match:
if match.group("value") not in ALLOWED_URLS and not url(
match.group("value")
match.group("value"), strict_query=False
):
yield LinterError(
f"{match.group(0)}: Invalid URL value",
Expand Down

0 comments on commit 15eaaae

Please sign in to comment.