Skip to content

Commit 4b36bfc

Browse files
clarify when yarl performs this normalisation
1 parent b8ab113 commit 4b36bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/exts/info/code_snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ async def _parse_snippets(self, content: str) -> str:
274274
for pattern, handler in self.pattern_handlers:
275275
for match in pattern.finditer(content):
276276
# ensure that the matched URL meets url normalization rules.
277-
# parsing with yarl resolves all parent urls such as `/../`,
277+
# parsing an absolute url with yarl resolves all parent urls such as `/../`,
278278
# we then check the regex again to make sure our groups stay the same
279279
unsanitized = match.group(0)
280280
normalized = str(yarl.URL(unsanitized))

0 commit comments

Comments
 (0)