We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2cb0b4 commit ee20220Copy full SHA for ee20220
telegram/utils/helpers.py
@@ -147,7 +147,7 @@ def extract_urls(message):
147
# Strip trailing slash from URL so we can compare them for equality
148
stripped_urls = [x[:-1] if x[-1] == '/' else x for x in all_urls]
149
150
- sorted_urls = sorted(stripped_urls, key=str.lower)
+ sorted_urls = sorted(stripped_urls)
151
152
# Remove exact duplicates
153
urls = OrderedDict({k: None for k in sorted_urls})
0 commit comments