]> Untitled Git - lemmy-ui.git/commitdiff
Remove pipe from community link regex
authorZetaphor <zetaphor@hey.com>
Thu, 22 Jun 2023 18:43:01 +0000 (15:43 -0300)
committerZetaphor <zetaphor@hey.com>
Thu, 22 Jun 2023 18:43:01 +0000 (15:43 -0300)
src/shared/config.ts

index db7e688ae359f7a62506a8a9213d5d6aadf5c69b..c56c64b0c2c3f1afce182f3598d1afebf432f1c5 100644 (file)
@@ -33,6 +33,6 @@ export const emDash = "\u2014";
  * /u/username@server.com
  */
 export const instanceLinkRegex =
-  /(\/[c|m|u]\/|!)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g;
+  /(\/[cmu]\/|!)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g;
 
 export const testHost = "0.0.0.0:8536";