aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar onerandomusername <[email protected]>2025-10-21 14:57:17 -0400
committerGravatar onerandomusername <[email protected]>2025-10-21 14:57:17 -0400
commit4b36bfcee7f223793ec3532a6dc5244156cca701 (patch)
treea9d3f9a1b0ea0cc5dbda52e6f25ce1f5430053ef
parentbuild: add explicit dependency on yarl (diff)
clarify when yarl performs this normalisation
-rw-r--r--bot/exts/info/code_snippets.py2
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))