Skip to content

Commit

Permalink
Merge pull request #30 from mwhite/master
Browse files Browse the repository at this point in the history
convert spaces to tabs
  • Loading branch information
pahen committed Jun 3, 2014
2 parents c41987b + f8df44f commit d187be2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/requirejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ var fs = require('fs'),
module.exports.getShimDepsFromConfig = function (filename, exclude) {
var deps = {},
config = parse.findConfig(filename, fs.readFileSync(filename, 'utf8')),
excludeRegex = exclude ? new RegExp(exclude) : false,
isIncluded = function (key) {
return !(excludeRegex && key.match(excludeRegex));
};
excludeRegex = exclude ? new RegExp(exclude) : false,
isIncluded = function (key) {
return !(excludeRegex && key.match(excludeRegex));
};

if (config.shim) {
Object.keys(config.shim).filter(isIncluded).forEach(function (key) {
Expand Down

0 comments on commit d187be2

Please sign in to comment.