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
txt.length = 72 txt.length - (sep+sep).length = 70
So txt.indexOf((sep+sep), txt.length - (sep+sep).length) = txt.indexOf('||', 70) = -1 after that fist disk is outputted only.
I think should be something like:
if (txt.indexOf(sep+sep) > 0)
instead of:
if (txt.indexOf((sep+sep), txt.length - (sep+sep).length) >= 0)
How do you think?
Thank you!
The text was updated successfully, but these errors were encountered:
About code:
My netcat output:
I think something wrong in first condition.
txt.length
= 72txt.length - (sep+sep).length
= 70So
txt.indexOf((sep+sep), txt.length - (sep+sep).length)
=txt.indexOf('||', 70)
=-1
after that fist disk is outputted only.I think should be something like:
instead of:
How do you think?
Thank you!
The text was updated successfully, but these errors were encountered: