[Release] Account for via in pill matching regex
https://github.com/matrix-org/matrix-react-sdk/pull/5188 to the release branchpull/21833/head
parent
c5e033d81a
commit
3973efeed3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue