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 @@ -3,11 +3,11 @@ var path = require('path');
3
3
var postcss = require ( 'postcss' ) ;
4
4
5
5
var defaultPattern = 'Regexp matched with %s on line %l' ;
6
- var logger ;
6
+ var postcssResult ;
7
7
8
8
module . exports = postcss . plugin ( 'postcss-regexp' , function ( options ) {
9
9
return function ( css , result ) {
10
- logger = result ;
10
+ postcssResult = result ;
11
11
if ( ! options . regexp ) {
12
12
throwOptionsError ( ) ;
13
13
return ;
@@ -22,7 +22,7 @@ module.exports = postcss.plugin('postcss-regexp', function(options) {
22
22
} ) ;
23
23
24
24
function throwOptionsError ( ) {
25
- logger . messages . push ( {
25
+ postcssResult . messages . push ( {
26
26
type : 'error' ,
27
27
plugin : 'postcss-regexp' ,
28
28
text : 'No regexp provided'
@@ -36,7 +36,7 @@ function processDecl(decl, rule) {
36
36
var message = pattern
37
37
. replace ( '%s' , value )
38
38
. replace ( '%l' , decl . source . start . line ) ;
39
- logger . warn ( message ) ;
39
+ postcssResult . warn ( message ) ;
40
40
}
41
41
42
42
You can’t perform that action at this time.
0 commit comments