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
Between 0.4.6 and 0.4.7, the behavior of string.split changed, specifically when splitting on a multi-character delimiter where the source string has two instances of the delimiter right beside eachother.
Describe the bug
Between 0.4.6 and 0.4.7, the behavior of
string.split
changed, specifically when splitting on a multi-character delimiter where the source string has two instances of the delimiter right beside eachother.Reproduction Steps
Code: https://play.vlang.io/p/9c7af8ea27
Expected Behavior
Expected output to match output in 0.4.6:
Current Behavior
Actual output:
Possible Solution
No response
Additional Information/Context
A user on Discord indicated this change was introduced in PR #21563.
Also, this bug does not occur with a single-character delimiter. The code
works as expected, producing
V version
V 0.4.7 52fe7c0
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: