Merge branch 'develop' into feature-rte

This commit is contained in:
Aviral Dasgupta 2016-05-29 20:50:33 +05:30
commit 96526c22c5
5 changed files with 51 additions and 3 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;
}