Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@
else{pid_limit=data_line.length-1}
for(var i=7,item=data_line[i];i<pid_limit;item=data_line[++i]){
if(item){
var line=item.replace(/\s{1,}/g, ',').substring(1)
//Here Trim is added as Porcess pid vary from 1 digit to 5 digit , due to that whitespace occurs as initial position so for removing it trim is used
///Added trim Feature for removing white spaces from initial position of pid present
//Also No requirement of ubstring
var line=item.trim().replace(/\s{1,}/g, ',')
if(line!=""){
parseProces(result,line)
}//if
Expand Down