@sereneinserenade/tiptap-search-and-replace
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@sereneinserenade/tiptap-search-and-replace", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Tiptap Extension for adding comments", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# Tiptap 2 Search and Replace | ||
Search and Replace extension for [Tiptap 2](https://tiptap.dev). Published to npm as [@sereneinserenade/tiptap-extension-search-n-replace](https://www.npmjs.com/package/@sereneinserenade/tiptap-extension-search-n-replace). | ||
Search and Replace extension for [Tiptap 2](https://tiptap.dev). Published to npm as [@sereneinserenade/tiptap-search-and-replace](https://www.npmjs.com/package/@sereneinserenade/tiptap-search-and-replace). | ||
@@ -11,3 +11,3 @@ A ⭐️ to the repo if you 👍 / ❤️ what I'm doing would be much appreciated. If you're using this extension and making money from it, it'd be very kind of you to [:heart: Sponsor me](https://github.com/sponsors/sereneinserenade). If you're looking for a **dev to work you on your project's Rich Text Editor** with or as **a frontend developer, [DM me on Discord/Twitter/LinkedIn](https://github.com/sereneinserenade)👨💻🤩**. | ||
Try it out live at https://sereneinserenade.github.io/tiptap-search-n-replace-demo, and/or take a look at a demo-video below. | ||
Try it out live at https://sereneinserenade.github.io/tiptap-search-and-replace, and/or take a look at a demo-video below. | ||
@@ -31,3 +31,3 @@ <details> | ||
I've published it as an [npm package](https://www.npmjs.com/package/@sereneinserenade/tiptap-extension-search-n-replace) so you can either directly install it, | ||
I've published it as an [npm package](https://www.npmjs.com/package/@sereneinserenade/tiptap-search-and-replace) so you can either directly install it, | ||
@@ -122,3 +122,3 @@ <details> | ||
## Awesome peeps, who've starred this repo 🚀! Thank you! | ||
[![Stargazers repo roster for @sereneinserenade/tiptap-search-n-replace-demo](https://reporoster.com/stars/dark/sereneinserenade/tiptap-search-n-replace-demo)](https://github.com/sereneinserenade/tiptap-search-n-replace-demo/stargazers) | ||
[![Stargazers repo roster for @sereneinserenade/tiptap-search-and-replace](https://reporoster.com/stars/dark/sereneinserenade/tiptap-search-and-replace)](https://github.com/sereneinserenade/tiptap-search-and-replace/stargazers) | ||
@@ -125,0 +125,0 @@ --- |
@@ -57,3 +57,3 @@ // MIT License | ||
const getRegex = (s: string, disableRegex: boolean, caseSensitive: boolean): RegExp => { | ||
return RegExp(disableRegex ? s.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&") : s, caseSensitive ? "gu" : "gui") | ||
return RegExp(disableRegex ? s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') : s, caseSensitive ? "gu" : "gui"); | ||
} | ||
@@ -60,0 +60,0 @@ |
Sorry, the diff of this file is not supported yet
34967