Signature parsing with regular expression failure
The regular expression used for splitting the signature accesses index 3.
stdout.split(/(\r\n|\n\n)/)[3];
This is breaking since the regular expression doesnt work as expected. The signature is actually present at index 6.
The issue is not with the index. The issue is with the regular expression itself.
it should have been var signature = stdout.split(/(\r\n\r\n|\n\n)/)[3];
#64 broke this in 2.2.0 release.
The regular expression is capturing '\r\n' and '\n\n'. Therefore 3 more captured line breaks are in the result array of stdout.split(/(\r\n\r\n|\n\n)/) and the signature appears in position 6 instead of 3.
I am having success by removing the bracket in the regular expression.
var signature = stdout.split(/\r\n|\n\n/)[3];