Comments (5)
Hi Karim, thanks for raising this. Nothing's changed about the plugin for a good while, so not sure what might be going wrong. FYI I'm pretty stacked at the moment, so can't look at this immediately, but will try when I can. If you get any further with investigations let me know.
Thanks again,
Jonathan
from grunt-text-replace.
Thank you Jonathan, currently looking into it - and not finding anything obvious. Will let you know if I get to the bottom of this.
from grunt-text-replace.
Interestingly enough - this looks like a windows issue. The same script works on OSX - with same version of Node & Grunt ...
from grunt-text-replace.
I had the same issue and it turned out to be that my RegExp was trying to match newlines in a way that worked in OS X but didn't in Windows.
from grunt-text-replace.
I'm just playing around with this now, and it seems the plugin isn't matching spaces properly. I'm trying to read a json file, manifest.json
, using a function call and a grunt.log
to see what's going on (it would be great if this plugin outputted what was changed!), and when I try and match \"version\"
it works fine, but when I try and match \"version\"
with a space it does nothing.
from grunt-text-replace.
Related Issues (20)
- Is it possible to not overwrite when no matches are found? HOT 3
- Load replacements from .json file HOT 5
- "Remove Support" HOT 1
- Git tag HOT 2
- File encoding changes on replace HOT 3
- Encoding and force options? HOT 5
- Add support for an expand option? HOT 7
- Task "replace" not found. HOT 2
- Replace only for first occurrence HOT 5
- Regex anchoring HOT 1
- Overwrite option not working? HOT 4
- Support for files: [] ?
- Error while processing (...) file. HOT 1
- replace with matching parentheses
- Folders with a period in the title are treated like files, error is thrown
- Any way to replace every string matching the regexp? HOT 1
- some trouble with the overwritting HOT 1
- grunt templates / variables within from: ? HOT 1
- Doesn't work at all - constant loop HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-text-replace.