Permalink
Browse files

fix trim string func call

  • Loading branch information...
1 parent a5af339 commit f1289137e6a1517d84dd9dd43daaadfae6b650a3 @mpobrien mpobrien committed Apr 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 streaming/examples/enron/enron_map.js
@@ -13,7 +13,7 @@ function mapFunc(doc, callback){
var to_field = doc['headers']['To']
var recips = []
to_field.split(',').forEach(function(to){
- callback( {'_id': {'f':from_field, 't':to.trim()}, 'count': 1} )
+ callback( {'_id': {'f':from_field, 't':trimString(to)}, 'count': 1} )
});
}
}

0 comments on commit f128913

Please sign in to comment.