Skip to content

Commit

Permalink
fixed link parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Dec 20, 2013
1 parent f83a03a commit e84dd4c
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 @@ -3,7 +3,7 @@ var INDENT = ' ';
var type = function(doc) {
if (doc === null) return 'null';
if (Array.isArray(doc)) return 'array';
if (typeof doc === 'string' && /https?:/.test(doc)) return 'link';
if (typeof doc === 'string' && /^https?:/.test(doc)) return 'link';

return typeof doc;
};
Expand Down

0 comments on commit e84dd4c

Please sign in to comment.