Skip to content

Commit 388a960

Browse files
committed
Cast all PIDs as Strings
Fixes [neekey#7](neekey#7)
1 parent d0bea7b commit 388a960

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/index.js

+7
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,14 @@ exports.lookup = function(query, callback) {
105105
else {
106106
idList = [ query.pid ];
107107
}
108+
109+
// Cast all PIDs as Strings
110+
idList = idList.map( function( v ){
111+
return String( v );
112+
} );
113+
108114
}
115+
109116

110117
if( query.command ){
111118
filter[ 'command' ] = new RegExp( query.command );

0 commit comments

Comments
 (0)