[SR-8716] String.split no splitting CR+LF #51228
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Environment
Tested with
Xcode 9.4.1 (Swift 4.1)
Xcode 10 beta 5 (Swift 4.2)
Ubuntu 18.04 (Swift 4.2 CONVERGE)
Additional Detail from JIRA
md5: 654bd6178aed918ea41e883d75d8e058
Issue Description:
String.split() does not split a String containing CR+LF ("\r\n") correctly when using only one of these characters as separator. Using both characters works though - which I actually not expected to work.
The behaviour can be tested in a playground:
Expected output was:
The text was updated successfully, but these errors were encountered: