You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
incorporate review
This commit is contained in:
@@ -106,7 +106,7 @@ var escapeRegExp = function(string) {
|
||||
// as if someone explicitly links to vector.im/develop and we're on vector.im/beta
|
||||
// they may well be trying to get us to explicitly go to develop.
|
||||
// FIXME: intercept matrix.to URLs as well.
|
||||
matrixLinkify.VECTOR_URL_PATTERN = "(https?:\/\/)?" + escapeRegExp(window.location.host + window.location.pathname);
|
||||
matrixLinkify.VECTOR_URL_PATTERN = "^(https?:\/\/)?" + escapeRegExp(window.location.host + window.location.pathname);
|
||||
|
||||
matrixLinkify.options = {
|
||||
events: function (href, type) {
|
||||
@@ -146,9 +146,7 @@ matrixLinkify.options = {
|
||||
return '_blank';
|
||||
}
|
||||
}
|
||||
else {
|
||||
return '_blank';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user