Skip to content

Commit

Permalink
Cast all PIDs as Strings
Browse files Browse the repository at this point in the history
  • Loading branch information
yetzt committed Apr 6, 2016
1 parent d0bea7b commit 388a960
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,14 @@ exports.lookup = function(query, callback) {
else {
idList = [ query.pid ];
}

// Cast all PIDs as Strings
idList = idList.map( function( v ){
return String( v );
} );

}


if( query.command ){
filter[ 'command' ] = new RegExp( query.command );
Expand Down

0 comments on commit 388a960

Please sign in to comment.