TextReplace: support /v regex flag
This commit is contained in:
parent
484d70fb15
commit
e4bf71784e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue