-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use more inclusive detection of URLs in message text
URI.regexp.match... only matched fully-qualified urls (i.e., urls need to include http://, https://, or another protocol) Twitter::TwitterText::Extractor.extract_urls recognizes urls without the protocol. This is consistent with how WhatsApp and other platforms parse URLs and more in line with user expectations.
- Loading branch information
computermacgyver
committed
Aug 28, 2024
1 parent
0598a50
commit 921b1d4
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters