wireguard-apple/WireGuard/Shared/Model
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
..
DNSServer.swift Update copyright 2019-01-07 19:23:39 -05:00
Data+KeyEncoding.swift Swift 5 migration: Handle changes in Data's pointer interface 2019-04-09 11:25:04 +05:30
Endpoint.swift Swift 5 migration: Fix switch warnings 2019-04-09 11:25:04 +05:30
IPAddressRange.swift Update copyright 2019-01-07 19:23:39 -05:00
InterfaceConfiguration.swift Update copyright 2019-01-07 19:23:39 -05:00
NETunnelProviderProtocol+Extension.swift TunnelsManager: store UID on macOS for keychain availability 2019-06-11 02:18:42 +02:00
PeerConfiguration.swift Tunnel: support getting runtime configuration 2019-01-24 01:37:57 +01:00
String+ArrayConversion.swift Update copyright 2019-01-07 19:23:39 -05:00
TunnelConfiguration+WgQuickConfig.swift WgQuickConfig: Swift treats \r\n as a single character 2019-06-28 12:26:39 +02:00
TunnelConfiguration.swift Update copyright 2019-01-07 19:23:39 -05:00
key.c Key: Use C implementation instead 2019-02-08 03:23:15 +01:00
key.h Key: Use C implementation instead 2019-02-08 03:23:15 +01:00