chore: rename project to clawdbot
This commit is contained in:
8
apps/macos/Sources/Clawdbot/String+NonEmpty.swift
Normal file
8
apps/macos/Sources/Clawdbot/String+NonEmpty.swift
Normal file
@@ -0,0 +1,8 @@
|
||||
import Foundation
|
||||
|
||||
extension String {
|
||||
var nonEmpty: String? {
|
||||
let trimmed = self.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
return trimmed.isEmpty ? nil : trimmed
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user