File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -71,19 +71,20 @@ const errorMap = {
71
71
column : previousLine . length - 1 ,
72
72
} ;
73
73
}
74
- if ( / , (? = \s * , ) / . test ( thisLine ) ) {
75
- return {
76
- reason : 'extra-commas' ,
77
- row : lineNumber - 1 ,
78
- column : errorToken . charNum ,
79
- } ;
80
- }
81
- if (
82
- errorToken . content === ',' &&
83
- errorToken . charNum - 1 !== / , / . exec ( thisLine ) . index &&
84
- endsWith ( trim ( thisLine ) , ';' )
85
- ) {
86
- return null ;
74
+ if ( errorToken . content === ',' ) {
75
+ if ( / , (? = \s * , ) / . test ( thisLine ) ) {
76
+ return {
77
+ reason : 'extra-commas' ,
78
+ row : lineNumber - 1 ,
79
+ column : errorToken . charNum ,
80
+ } ;
81
+ }
82
+ if (
83
+ errorToken . charNum - 1 !== / , / . exec ( thisLine ) . index &&
84
+ endsWith ( trim ( thisLine ) , ';' )
85
+ ) {
86
+ return null ;
87
+ }
87
88
}
88
89
}
89
90
You can’t perform that action at this time.
0 commit comments