[Release] Account for via in pill matching regex

https://github.com/matrix-org/matrix-react-sdk/pull/5188 to the release branch
pull/21833/head
Travis Ralston 2020-09-09 14:35:17 -06:00
parent c5e033d81a
commit 3973efeed3
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ import {Action} from "../../../dispatcher/actions";
// For URLs of matrix.to links in the timeline which have been reformatted by
// 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 {
static isPillUrl(url) {