- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
nonisolated
private static func mapRules(firstName: String, surname: String, middleName: String) -> Bool {
let mainRule = firstName.isNotEmpty &&
surname.isNotEmpty &&
firstName.isValidPersonalData &&
surname.isValidPersonalData
let additionalRule = middleName.isNotEmpty &&
middleName.isValidPersonalData
return additionalRule ? mainRule && additionalRule : mainRule
}
Комментарии (0) RSS
Добавить комментарий