Separate parser and helpers from Password class for better testability

This commit is contained in:
Danny Moesch 2018-11-11 18:09:52 +01:00 committed by Bob Sun
parent 2abbceb2e9
commit 7c12263458
17 changed files with 913 additions and 537 deletions

View file

@ -16,3 +16,9 @@ public extension String {
return addingPercentEncoding(withAllowedCharacters: allowed)
}
}
extension String {
static func | (left: String, right: String) -> String {
return right.isEmpty ? left : left + "\n" + right
}
}