fix url previews firing incorrectly on Matrix.org

pull/21833/head
Matthew Hodgson 2016-05-27 10:09:07 +01:00
parent 0a2d0141b3
commit d5e6e961fd
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ module.exports = React.createClass({
else {
var url = node.getAttribute("href");
var host = url.match(/^https?:\/\/(.*?)(\/|$)/)[1];
if (node.textContent.trim().startsWith(host)) {
if (node.textContent.toLowerCase().trim().startsWith(host.toLowerCase())) {
// it's a "foo.pl" style link
return;
}