Skip to content
Browse files

Fixes #807 directory with `.styl` in the name and local install of st…

…ylus
  • Loading branch information...
1 parent b4c438d commit 7a196d97c82e63d8cc2f824d4d84f19870c63c36 @tonistiigi tonistiigi committed Oct 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/visitor/evaluator.js
View
2 lib/visitor/evaluator.js
@@ -655,7 +655,7 @@ Evaluator.prototype.visitImport = function(imported){
}
// support optional .styl
- if (!literal && !~path.indexOf('.styl')) path += '.styl';
+ if (!literal && !/\.styl$/i.test(path)) path += '.styl';
// Lookup
found = utils.lookup(path, this.paths, this.filename);

0 comments on commit 7a196d9

Please sign in to comment.
Something went wrong with that request. Please try again.