-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix syntax detection screwed up by wrong URLs (fixes #28)
Before this commit, if you had two underscores in an URL the whole message was marked as markdown. This caused issues because Telegram clients refuses to mark links as links if they contain syntax in them. This commit strips URLs and email addresses from the messages before checking if they're markdown or not, so this bug is fixed. Also, there are new tests to prevent this issue from happening in the future.
- Loading branch information
Pietro Albini
committed
Feb 23, 2016
1 parent
68c3226
commit 4820507
Showing
4 changed files
with
33 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
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