diff options
author | 2025-10-21 14:57:17 -0400 | |
---|---|---|
committer | 2025-10-21 14:57:17 -0400 | |
commit | 4b36bfcee7f223793ec3532a6dc5244156cca701 (patch) | |
tree | a9d3f9a1b0ea0cc5dbda52e6f25ce1f5430053ef | |
parent | build: add explicit dependency on yarl (diff) |
clarify when yarl performs this normalisation
Diffstat (limited to '')
-rw-r--r-- | bot/exts/info/code_snippets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/code_snippets.py b/bot/exts/info/code_snippets.py index 0d890a853..1ba4151c7 100644 --- a/bot/exts/info/code_snippets.py +++ b/bot/exts/info/code_snippets.py @@ -274,7 +274,7 @@ class CodeSnippets(Cog): for pattern, handler in self.pattern_handlers: for match in pattern.finditer(content): # ensure that the matched URL meets url normalization rules. - # parsing with yarl resolves all parent urls such as `/../`, + # parsing an absolute url with yarl resolves all parent urls such as `/../`, # we then check the regex again to make sure our groups stay the same unsanitized = match.group(0) normalized = str(yarl.URL(unsanitized)) |