File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import Cocoa
2
2
3
- public func palindromeCheck ( text: String ? ) -> Bool {
3
+ public func palindromeCheck( text: String ? ) -> Bool {
4
4
if let text = text {
5
- let mutableText = text. trimmingCharacters ( in: NSCharacterSet . whitespaces ( ) ) . lowercased ( )
5
+ let mutableText = text. trimmingCharacters ( in: NSCharacterSet . whitespaces) . lowercased ( )
6
6
let length : Int = mutableText. characters. count
7
7
8
8
guard length >= 1 else {
Original file line number Diff line number Diff line change 1
1
import Cocoa
2
2
3
- public func palindromeCheck ( text: String ? ) -> Bool {
3
+ public func palindromeCheck( text: String ? ) -> Bool {
4
4
if let text = text {
5
- let mutableText = text. trimmingCharacters ( in: NSCharacterSet . whitespaces ( ) ) . lowercased ( )
5
+ let mutableText = text. trimmingCharacters ( in: NSCharacterSet . whitespaces) . lowercased ( )
6
6
let length : Int = mutableText. characters. count
7
7
8
8
guard length >= 1 else {
You can’t perform that action at this time.
0 commit comments