From e4bf71784e158ad1a690427c4720240bf8b58964 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 28 Jun 2024 16:04:51 +0200 Subject: [PATCH] TextReplace: support /v regex flag --- src/plugins/textReplace/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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