vmg / rinku

Autolinking. Ruby. Yes, that's pretty much it.
ISC License
597 stars 67 forks source link

Curly quotes should not be part of URL #78

Open robbertbrak opened 6 years ago

robbertbrak commented 6 years ago

Rinku.auto_link(%(‘http://example.org’)) produces ‘<a href="http://example.org’">http://example.org’</a>. I would have expected it to produce ‘<a href="http://example.org">http://example.org</a>’ instead. Similarly for Rinku.auto_link(%(“http://example.org”)).

These curly quotes should probably be treated the same as their straight cousins ' and ", right?