File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -166,8 +166,8 @@ module.exports = function(grunt){
166166 } ] ,
167167 options : {
168168 replacements : [ {
169- pattern : '$ .fn.datepicker.version = "1.4.0";' ,
170- replacement : ' $.fn.datepicker.version = "' + grunt . option ( 'newver' ) + '";'
169+ pattern : / \$ ( \ .f n \ .d a t e p i c k e r \ .v e r s i o n ) \s = \s * ( " | \' ) [ 0 - 9 \. a - z ] . * ( " | ' ) ; / gi ,
170+ replacement : " $.fn.datepicker.version = '" + grunt . option ( 'newver' ) + "';"
171171 } ]
172172 }
173173 } ,
@@ -178,7 +178,7 @@ module.exports = function(grunt){
178178 } ] ,
179179 options : {
180180 replacements : [ {
181- pattern : ' "version": "1.4.0",' ,
181+ pattern : / \ "v e r s i o n \" : \s \" [ 0 - 9 \. a - z ] . * " , / gi ,
182182 replacement : '"version": "' + grunt . option ( 'newver' ) + '",'
183183 } ]
184184 }
@@ -190,7 +190,7 @@ module.exports = function(grunt){
190190 } ] ,
191191 options : {
192192 replacements : [ {
193- pattern : ' "version": "1.4.0",' ,
193+ pattern : / \ "v e r s i o n \" : \s \" [ 0 - 9 \. a - z ] . * " , / gi ,
194194 replacement : '"version": "' + grunt . option ( 'newver' ) + '",'
195195 } ]
196196 }
You can’t perform that action at this time.
0 commit comments