Skip to content

Commit

Permalink
ugly fix for busted description
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 9, 2012
1 parent aa2e095 commit a9e2f34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fetch.js
Expand Up @@ -70,7 +70,9 @@ function fetch() {
}

function parse(str) {
return String(str).match(/\w+/).map(function(word){
str = String(str).trim();
if (!str) return [];
return str.match(/\w+/).map(function(word){
return word.toLowerCase();
});
}
Expand Down

0 comments on commit a9e2f34

Please sign in to comment.