You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
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];
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];
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 text was updated successfully, but these errors were encountered: