Closed northword closed 1 year ago
Hi @adamreisnz, any thoughts? Many projects are using this lib, and some of them have relatively high influence in community with more than 1k stars. This bug prevents us from updating to replace-in-file to the latest.
This is an amazing tool and thank all contributors for your hard work.
Hi, I am currently on holiday for a few weeks, and also don't have a windows machine to test this with. I'll happily accept a PR for a proposed fix.
Does this only affect the latest version?
On Thu, Jun 22, 2023, 06:43 windingwind @.***> wrote:
Hi @adamreisnz https://github.com/adamreisnz, any thoughts? Many projects are using this lib, and some of them have relatively high influence in community with more than 1k stars. This bug prevents us from updating to replace-in-file to the latest.
This is an amazing tool and thank all contributors for your hard work.
— Reply to this email directly, view it on GitHub https://github.com/adamreisnz/replace-in-file/issues/165#issuecomment-1602332379, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADXYQRU2UIJ6IDNPP63A2LXMQHT7ANCNFSM6AAAAAAY5QX6DU . You are receiving this because you were mentioned.Message ID: @.***>
Does this only affect the latest version?
yes.
It seems to be an other mistake.
We replaced RplaceInFileOption.files
with the correct glob pattern and it works fine, however in 6.3.5, \\**\*.js
also works fine, which is confusing.
relate: https://github.com/windingwind/zotero-plugin-template/pull/63
PR: #169
Description
If the path is separated by
\\
inReplaceInFileConfig.files
, the path cannot be replaced, when the path separator is replaced by/
, it works fine.(version 6.3.5 works fine)
Environment
Node.js: v16.16.0 replace-in-file: 7.0.1 OS: Windows 11 22H2 22621.1778
Example
build.js
console:
return
builds\\**\\*.rdf
has not been changed (confirm that thebuilds\\addon\\install.rdf
file exists and that it contains the eligible replacement text)