File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
3
+ const logger = require ( './log' ) ;
4
+
3
5
const style_modifier_hunter = function ( ) {
4
6
5
7
/**
@@ -17,9 +19,7 @@ const style_modifier_hunter = function () {
17
19
//replace the special character pipe | used to separate multiple classes with a space
18
20
styleModifier = styleModifier . replace ( / \| / g, ' ' ) ;
19
21
20
- if ( patternlab . config . debug ) {
21
- console . log ( 'found partial styleModifier within pattern ' + pattern . patternPartial ) ;
22
- }
22
+ logger . debug ( `Found partial styleModifier within pattern ${ pattern . patternPartial } ` ) ;
23
23
24
24
//replace the stylemodifier placeholder with the class name
25
25
pattern . extendedTemplate = pattern . extendedTemplate . replace ( / { { [ ] ? s t y l e M o d i f i e r [ ] ? } } / i, styleModifier ) ;
You can’t perform that action at this time.
0 commit comments