mirror of https://github.com/vector-im/riot-web
fix url previews firing incorrectly on Matrix.org
parent
0a2d0141b3
commit
d5e6e961fd
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue