From 28d096445dc9df5e6b90a0f6e2422731ccd3aab1 Mon Sep 17 00:00:00 2001 From: Arthur Rosa Date: Sun, 18 Aug 2024 18:09:01 -0700 Subject: [PATCH] fix: Modifying MENTION_START regex to work on older MobileSafari versions Fixes RichText causes errors on WebKit | Invalid regex #5589 This regex performs the same function as the one used before, but does not make use of negative lookbehinds and therefore should work on older MobileSafari versions. Co-authored-by: Maksim Sukharev Signed-off-by: Arthur Rosa --- src/mixins/richEditor/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mixins/richEditor/index.js b/src/mixins/richEditor/index.js index c14ed08f46..0401698474 100644 --- a/src/mixins/richEditor/index.js +++ b/src/mixins/richEditor/index.js @@ -11,8 +11,8 @@ import stripTags from 'striptags' import { createApp } from 'vue' // Referenced from public function getMentions(): https://github.com/nextcloud/server/blob/master/lib/private/Comments/Comment.php -// Beginning or whitespace. Non-capturing group within word boundary -const MENTION_START = /\B(?