Skip to content

Commit

Permalink
check for instance of Date
Browse files Browse the repository at this point in the history
  • Loading branch information
doowb committed Dec 2, 2014
1 parent 44cc193 commit 3d440b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function src(glob, opt) {
.pipe(through.obj(createFile))
.pipe(getStats(options));

if (options.since) {
if (options.since && (options.since instanceof Date)) {
outputStream = outputStream
.pipe(through.obj(filterSince(options.since)));
}
Expand Down

0 comments on commit 3d440b3

Please sign in to comment.