grunt-sed icon indicating copy to clipboard operation
grunt-sed copied to clipboard

Multiple replacements in the same line

Open acdha opened this issue 12 years ago • 2 comments

I was working on a minor change to cleanup generated source maps and used grunt-sed at first but had to switch after noticing that it was only replacing the first instance of a string on a line. I tried using /foo/g instead of a string pattern to no effect

acdha avatar Apr 09 '13 19:04 acdha

Hmm not sure why that doesn't work. grunt-sed is just a light wrapper around replace so the issue could originate from that project. I'll investigate when I get a chance.

jharding avatar Apr 09 '13 19:04 jharding

So I added a test for this and it seems to be working as expected. Can you upgrade to [email protected] and let me know if you are still experiencing the issue?

jharding avatar Apr 10 '13 02:04 jharding