Merge pull request #5188 from matrix-org/travis/permalink-pills
Account for via in pill matching regex
This commit is contained in:
commit
c61f2a8099
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ import {Action} from "../../../dispatcher/actions";
|
||||||
|
|
||||||
// For URLs of matrix.to links in the timeline which have been reformatted by
|
// For URLs of matrix.to links in the timeline which have been reformatted by
|
||||||
// HttpUtils transformTags to relative links. This excludes event URLs (with `[^\/]*`)
|
// HttpUtils transformTags to relative links. This excludes event URLs (with `[^\/]*`)
|
||||||
const REGEX_LOCAL_PERMALINK = /^#\/(?:user|room|group)\/(([#!@+])[^/]*)$/;
|
const REGEX_LOCAL_PERMALINK = /^#\/(?:user|room|group)\/(([#!@+]).*?)(?=\/|\?|$)/;
|
||||||
|
|
||||||
class Pill extends React.Component {
|
class Pill extends React.Component {
|
||||||
static isPillUrl(url) {
|
static isPillUrl(url) {
|
||||||
|
|
Loading…
Reference in a new issue