mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 12:45:11 +08:00
fix deep-linking to riot.im/app
This commit is contained in:
parent
34c1a8f3cf
commit
6a63c7e50c
@ -122,7 +122,7 @@ var escapeRegExp = function(string) {
|
||||
// anyone else really should be using matrix.to.
|
||||
matrixLinkify.VECTOR_URL_PATTERN = "^(?:https?:\/\/)?(?:"
|
||||
+ escapeRegExp(window.location.host + window.location.pathname) + "|"
|
||||
+ "(?:www\\.)?(?:riot|vector)\\.im/(?:beta|staging|develop)/"
|
||||
+ "(?:www\\.)?(?:riot|vector)\\.im/(?:app|beta|staging|develop)/"
|
||||
+ ")(#.*)";
|
||||
|
||||
matrixLinkify.MATRIXTO_URL_PATTERN = "^(?:https?:\/\/)?(?:www\\.)?matrix\\.to/#/((#|@|!).*)";
|
||||
|
Loading…
Reference in New Issue
Block a user