File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ function getDetectedOptions(detected, handlers) {
158158 * @name CSScomb
159159 */
160160var CSScomb = function ( config ) {
161- var options = fs . readdirSync ( './lib /options') . map ( function ( option ) {
161+ var options = fs . readdirSync ( __dirname + ' /options') . map ( function ( option ) {
162162 return require ( './options/' + option ) ;
163163 } ) ;
164164
@@ -286,7 +286,7 @@ CSScomb.detectInString = function detectInString(text, options) {
286286
287287 if ( ! text ) return text ;
288288
289- var optionNames = fs . readdirSync ( './lib /options') ;
289+ var optionNames = fs . readdirSync ( __dirname + ' /options') ;
290290 optionNames . forEach ( function ( option ) {
291291 option = option . slice ( 0 , - 3 ) ;
292292 if ( options && options . indexOf ( option ) < 0 ) return ;
You can’t perform that action at this time.
0 commit comments