diff --git a/src/plugins/textReplace/index.tsx b/src/plugins/textReplace/index.tsx index 416ce83f..615477d0 100644 --- a/src/plugins/textReplace/index.tsx +++ b/src/plugins/textReplace/index.tsx @@ -77,7 +77,7 @@ const settings = definePluginSettings({ }); function stringToRegex(str: string) { - const match = str.match(/^(\/)?(.+?)(?:\/([gimsuy]*))?$/); // Regex to match regex + const match = str.match(/^(\/)?(.+?)(?:\/([gimsuyv]*))?$/); // Regex to match regex return match ? new RegExp( match[2], // Pattern