Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix bug with falsy "" src empty string

  • Loading branch information...
commit 08fce3f8842d308dfe436f0ecb6e2b5b52e0e022 1 parent 1decc39
@substack authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  index.js
  2. +1 −1  package.json
View
2  index.js
@@ -25,7 +25,7 @@ module.exports = function (src, opts, fn) {
src = opts.source;
delete opts.source;
}
- src = src || opts.source;
+ src = src === undefined ? opts.source : src;
opts.range = true;
if (typeof src !== 'string') src = String(src);
View
2  package.json
@@ -1,7 +1,7 @@
{
"name" : "falafel",
"description" : "transform the ast on a recursive walk",
- "version" : "0.1.5",
+ "version" : "0.1.6",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/node-falafel.git"
Please sign in to comment.
Something went wrong with that request. Please try again.