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;
12
12
* @returns {Promise<undefined> } Promise resolving with undefined once data has been written
13
13
*/
14
14
module . exports = function ( { workspace, options} ) {
15
- const pattern = new RegExp ( options . configuration . pattern || "the" ) ;
15
+ const pattern = options . configuration . pattern || "the" ;
16
16
17
- return workspace . byGlob ( "/**/*.{js,json}" )
17
+ return workspace . byGlob ( "/**/*.{js,json,html }" )
18
18
. then ( ( processedResources ) => {
19
19
return stringReplacer ( {
20
20
resources : processedResources ,
21
21
options : {
22
- pattern,
23
- replacement : "the pony and the "
22
+ pattern : new RegExp ( pattern ) ,
23
+ replacement : "pony"
24
24
}
25
25
} ) ;
26
26
} )
Original file line number Diff line number Diff line change 7
7
- name : ponyInserter
8
8
beforeTask : uglify
9
9
configuration :
10
- color : blue
11
- ----
10
+ pattern : the
11
+ ---
12
12
specVersion : " 0.1"
13
13
kind : extension
14
14
type : task
You can’t perform that action at this time.
0 commit comments