From 251ebeadf5943f33dac45c4b3873b2ace1107ab1 Mon Sep 17 00:00:00 2001 From: Arthur Rosa Date: Sun, 18 Aug 2024 18:09:01 -0700 Subject: [PATCH] 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. --- src/mixins/richEditor/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mixins/richEditor/index.js b/src/mixins/richEditor/index.js index 25ccd81a78..f902e74dbc 100644 --- a/src/mixins/richEditor/index.js +++ b/src/mixins/richEditor/index.js @@ -11,8 +11,9 @@ import stripTags from 'striptags' import Vue 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(?