Fix room v12 mention pills (#2438)
authorAjay Bura <32841439+ajbura@users.noreply.github.com>
Sat, 16 Aug 2025 11:30:52 +0000 (17:00 +0530)
committerGitHub <noreply@github.com>
Sat, 16 Aug 2025 11:30:52 +0000 (21:30 +1000)
src/app/plugins/matrix-to.ts

index c9df0a8760a7f7d122e55aa7e04196cb01f2cb70..feeafe05e57257b8e7328f8b831cc4da4eba5dd7 100644 (file)
@@ -42,9 +42,9 @@ const MATRIX_TO = /^https?:\/\/matrix\.to\S*$/;
 export const testMatrixTo = (href: string): boolean => MATRIX_TO.test(href);
 
 const MATRIX_TO_USER = /^https?:\/\/matrix\.to\/#\/(@[^:\s]+:[^?/\s]+)\/?$/;
-const MATRIX_TO_ROOM = /^https?:\/\/matrix\.to\/#\/([#!][^:\s]+:[^?/\s]+)\/?(\?[\S]*)?$/;
+const MATRIX_TO_ROOM = /^https?:\/\/matrix\.to\/#\/([#!][^?/\s]+)\/?(\?[\S]*)?$/;
 const MATRIX_TO_ROOM_EVENT =
-  /^https?:\/\/matrix\.to\/#\/([#!][^:\s]+:[^?/\s]+)\/(\$[^?/\s]+)\/?(\?[\S]*)?$/;
+  /^https?:\/\/matrix\.to\/#\/([#!][^?/\s]+)\/(\$[^?/\s]+)\/?(\?[\S]*)?$/;
 
 export const parseMatrixToUser = (href: string): string | undefined => {
   const match = href.match(MATRIX_TO_USER);