Skip to content

Commit

Permalink
Update src/mixins/richEditor/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux and Antreesy authored Aug 20, 2024
1 parent 6bba2d8 commit 1879c1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mixins/richEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ 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
// Modified to work on MobileSafari <16.4 (see issue #5589: https://github.com/nextcloud-libraries/nextcloud-vue/issues/5589)
// Beginning or whitespace.
// Beginning or whitespace. Uses positive lookahead (to work on MobileSafari <16.4)
const MENTION_START = /(?=[a-z0-9_\-@.'])\B/.source
// Capturing groups like: @user-id, @"guest/abc16def", @"federated_user/user-id", @"user-id with space"
const MENTION_SIMPLE = /(@[a-z0-9_\-@.']+)/.source
Expand Down

0 comments on commit 1879c1a

Please sign in to comment.