Skip to content

Commit ee20220

Browse files
committed
Fixed sorting
1 parent a2cb0b4 commit ee20220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/utils/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def extract_urls(message):
147147
# Strip trailing slash from URL so we can compare them for equality
148148
stripped_urls = [x[:-1] if x[-1] == '/' else x for x in all_urls]
149149

150-
sorted_urls = sorted(stripped_urls, key=str.lower)
150+
sorted_urls = sorted(stripped_urls)
151151

152152
# Remove exact duplicates
153153
urls = OrderedDict({k: None for k in sorted_urls})

0 commit comments

Comments
 (0)