wireguard-apple/WireGuard
Jason A. Donenfeld bb5760cca4 WgQuickConfig: Swift treats \r\n as a single character
let blah = "hello\nworld\ndoes\nthis\nwork"
print(blah.split(separator: "\n"))
//output: ["hello", "world", "does", "this", "work"]

let blah2 = "hello\r\nworld\r\ndoes\r\nthis\r\nwork"
print(blah2.split(separator: "\n"))
//output: ["hello\r\nworld\r\ndoes\r\nthis\r\nwork"]
//expected: ["hello\r", "world\r", "does\r", "this\r", "work\r"]

In blah2, the string splitting fails because swift considers \r\n to be
its own character.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-06-28 12:26:39 +02:00
..
Shared WgQuickConfig: Swift treats \r\n as a single character 2019-06-28 12:26:39 +02:00
WireGuard UI: macOS: Show useful error message on .conf import 2019-06-28 12:07:18 +02:00
WireGuard.xcodeproj iOS: Show Home screen quick actions for recent tunnels 2019-05-25 13:24:01 +02:00
WireGuardNetworkExtension TunnelProvider: remove all cleverness 2019-06-10 18:47:39 +02:00
.swiftlint.yml Swiftlint: variable_name -> identifier_name 2019-03-18 22:26:13 -06:00