diff --git a/packages/tiptap-extensions/src/extensions/Search.js b/packages/tiptap-extensions/src/extensions/Search.js index 74985878a..ab85ffec0 100644 --- a/packages/tiptap-extensions/src/extensions/Search.js +++ b/packages/tiptap-extensions/src/extensions/Search.js @@ -53,7 +53,7 @@ export default class Search extends Extension { } get findRegExp() { - return RegExp(this.searchTerm, !this.options.caseSensitive ? 'gi' : 'g') + return RegExp(this.searchTerm, !this.options.caseSensitive ? 'gui' : 'gu') } get decorations() {