Closed GeorgeFlorian closed 4 years ago
Same issue here. Did you manage to resolve it?
@mattvb91 I could not use this library as I wanted to so I've stopped trying and went for a simpler approach using https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback
I am trying to use
replace-in-file
but it always returnshasChanged: false
and it doesn't replace anything in my file.This returns:
The
file
is correct,path
is corect,newFileContent
is different than the old one.Old Content in file:
New content string:
but the file has the old content inside it.
I have also used
from: "/[\s\S]+/g",
but with the same negative result.I don't know what goes wrong.
Any thoughts ?