Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Removed bracket in regex to fixed empty signature issue #70

Merged
merged 2 commits into from
Sep 9, 2019

Conversation

vodaben
Copy link
Contributor

@vodaben vodaben commented May 28, 2019

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];

@assaf assaf merged commit 90bbcee into assaf:master Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants