replace-in-file icon indicating copy to clipboard operation
replace-in-file copied to clipboard

Regex in to

Open kshitijkurandwad211 opened this issue 2 years ago • 1 comments

Can add a new feature where right now from can be regex and to is supposed to string. This is causing problems while using typescript but in normal node js. This works wonderfully. Just changing .d.ts can even run regex for replacement.

kshitijkurandwad211 avatar Jul 26 '23 07:07 kshitijkurandwad211

If this is just a Typescript definitions change, then please feel free to create a PR for this and I'll merge it in.

adamreisnz avatar Feb 14 '24 05:02 adamreisnz

PR has been closed as according to the documentation, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace, the replace function only accepts a string or a function, not a regex.

adamreisnz avatar Jun 24 '24 01:06 adamreisnz