File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export function activate(context: vscode.ExtensionContext) {
5252 let result = config . templateContent || Angular . templateContent ;
5353 result = config . icon ? result . replace ( / < i c o n > / g, config . icon ) : result . replace ( / < i c o n > / g, '' ) ;
5454 result = config . type !== '' ? result . replace ( / < t y p e > / g, config . type ) : result . replace ( / < t y p e > / g, '' ) ;
55- result = config . scope !== '' ? result . replace ( / < s c o p e > / g, config . scope ) : result . replace ( / < s c o p e > / g, '' ) ;
55+ result = config . scope !== '' ? result . replace ( / < s c o p e > / g, config . scope ) : result . replace ( / \( ? < s c o p e > \) ? / g, '' ) ;
5656 result = config . subject !== '' ? result . replace ( / < s u b j e c t > / g, config . subject ) : result . replace ( / < s u b j e c t > / g, '' ) ;
5757 result = config . body !== '' ? result . replace ( / < b o d y > / g, config . body ) : result . replace ( / < b o d y > / g, '' ) ;
5858 result = config . footer !== '' ? result . replace ( / < f o o t e r > / g, config . footer ) : result . replace ( / < f o o t e r > / g, '' ) ;
You can’t perform that action at this time.
0 commit comments