Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
adurrive committed Jan 28, 2016
1 parent 4301111 commit 9013d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function gm (source, height, color) {
var inputFromStdin = this.sourceStream || this.sourceBuffer;
var ret = inputFromStdin ? '-' : this.source;

if (inputFromStdin && this.source && this.source !== 'unknown.jpg') ret = this.source.split('.').pop() + ':-';
if (inputFromStdin && this.source && this.source !== 'unknown.jpg' && this.source.split('.').length > 2) ret = this.source.split('.').pop() + ':-';
if (ret && this.sourceFrames) ret += this.sourceFrames;

src.length = 0;
Expand Down

0 comments on commit 9013d59

Please sign in to comment.