File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ The string to search for.
88
88
Type: ` String ` or ` Function `
89
89
90
90
The replacement string or function. Called once for each match.
91
+ Function has access to regex outcome (all arguments are passed).
91
92
92
93
##### options
93
94
Type: ` Object `
@@ -105,6 +106,7 @@ Displaying "not replaced" logs.
105
106
More details here: [MDN documentation for RegExp] and [MDN documentation for String.replace].
106
107
107
108
### Release History
109
+ * 2017-01-19 v0.4.0 Passed entire regex outcome to replace function.
108
110
* 2017-01-04 v0.3.1 Improved documentation. Removed duplicated comments & Fixed typo.
109
111
* 2016-11-30 v0.3.0 Default value for "notReplaced" set to "false".
110
112
* 2016-09-24 v0.2.0 Added options object.
@@ -120,4 +122,4 @@ Task submitted by [Tomasz Czechowski](http://czechowski.pl/). License MIT.
120
122
[npm-url]: https://npmjs.org/package/gulp-string-replace
121
123
[npm-image]: https://badge.fury.io/js/gulp-string-replace.svg
122
124
[gulp-string-replace-dependencies-image]: https://david-dm.org/tomaszczechowski/gulp-string-replace/status.png
123
- [gulp-string-replace-dependencies-url]: https://david-dm.org/tomaszczechowski/gulp-string-replace#info=dependencies
125
+ [gulp-string-replace-dependencies-url]: https://david-dm.org/tomaszczechowski/gulp-string-replace#info=dependencies
You can’t perform that action at this time.
0 commit comments