Closed ctjhoa closed 6 years ago
Can you give an example of how this is useful?
Take a look at https://github.com/csnover/TraceKit/pull/64/commits/1e6703b5f3543e8a9b268648bf22de146e07ba5c
I was forced to create a new gruntBumpPrereleaseName
to remove the dot which cause issue #190
With this PR you can reuse directly grunt current task variables.
eg.
regExp: function() {
return new RegExp('([\'|\"]?version[\'|\"]?[ ]*:[ ]*[\'|\"]?)(\\d+\\.\\d+\\.\\d+(-' +
grunt.task.current.options.prereleaseName +
'\\.\\d+)?(-\\d+)?)[\\d||A-a|-]*([\'|\"]?)', 'i'
);
}
@eddiemonge Updated. Sorry for the late reply I didn't notice your request change.
@eddiemonge done
This is useful if you want to reuse options in the RegExp. eg: