-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String#split not working #3638
Comments
Maybe I miss something but you split at the . and in your first example you compare with a string which stoll contains the . and bot parts but in the second example you compare to only the 0 element before the . It seems this is absolute correcy but maybe I missunderstand something. can you explain what you would expect and why? |
I cannot reproduce the issue. Could you show us an error reproducing script? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
case#1
try
'12345678901234567890#123'.split('#')[0]
and get (wrong result)
'12345678901234567890#123'
but it should
'12345678901234567890'
case#2
try
'12345678901234567890#12'.split('#')[0]
and get (correct result)
'12345678901234567890'
Has anyone found this like me?
Please help.
The text was updated successfully, but these errors were encountered: