Don't linkify text near a URL that looks like a URL with a bad protocol
This commit is contained in:
parent
d0773078f0
commit
feed89225f
2 changed files with 32 additions and 25 deletions
|
|
@ -234,6 +234,8 @@ http://example1.com
|
|||
<a href="blarg">http://example5.com</a>
|
||||
|
||||
unknown://example6.com
|
||||
|
||||
I can send email through smtp.gmail.com:587 or through https://www.gmail.com/
|
||||
""");
|
||||
|
||||
string expected = """
|
||||
|
|
@ -246,6 +248,8 @@ unknown://example6.com
|
|||
<a href="blarg">http://example5.com</a>
|
||||
|
||||
unknown://example6.com
|
||||
|
||||
I can send email through smtp.gmail.com:587 or through <a href="https://www.gmail.com/">https://www.gmail.com/</a>
|
||||
""";
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue