File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ const stringReplacer = require("@ui5/builder").processors.stringReplacer;
1212 * @returns {Promise<undefined> } Promise resolving with undefined once data has been written
1313 */
1414module . exports = function ( { workspace, options} ) {
15- const pattern = new RegExp ( options . configuration . pattern || "the" ) ;
15+ const pattern = options . configuration . pattern || "the" ;
1616
17- return workspace . byGlob ( "/**/*.{js,json}" )
17+ return workspace . byGlob ( "/**/*.{js,json,html }" )
1818 . then ( ( processedResources ) => {
1919 return stringReplacer ( {
2020 resources : processedResources ,
2121 options : {
22- pattern,
23- replacement : "the pony and the "
22+ pattern : new RegExp ( pattern ) ,
23+ replacement : "pony"
2424 }
2525 } ) ;
2626 } )
Original file line number Diff line number Diff line change 77 - name : ponyInserter
88 beforeTask : uglify
99 configuration :
10- color : blue
11- ----
10+ pattern : the
11+ ---
1212specVersion : " 0.1"
1313kind : extension
1414type : task
You can’t perform that action at this time.
0 commit comments