Skip to content

Commit

Permalink
add quick fail
Browse files Browse the repository at this point in the history
  • Loading branch information
maccman committed Aug 3, 2011
1 parent 1b24b42 commit fd266aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -7,6 +7,8 @@ var exports = module.exports = function (src) {
exports.find = function (src) {
var modules = { strings : [], expressions : [] };

if (src.indexOf('require(') == -1) return modules;

burrito(src, function (node) {
var isRequire = node.name === 'call'
&& node.value[0][0] === 'name'
Expand Down

0 comments on commit fd266aa

Please sign in to comment.