From 0bba9f5766db05c088c63dfe61c5fe76447665e2 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 12 Feb 2026 01:37:47 +0100 Subject: [PATCH] Defined the Character+Constants extension in. the app target. --- App/Sources/Extensions/Character+Constants.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 App/Sources/Extensions/Character+Constants.swift diff --git a/App/Sources/Extensions/Character+Constants.swift b/App/Sources/Extensions/Character+Constants.swift new file mode 100644 index 0000000..3b02b5d --- /dev/null +++ b/App/Sources/Extensions/Character+Constants.swift @@ -0,0 +1,11 @@ +// MARK: - Character+Constants + +extension Character { + + /// The newline character -`\n`-. + /// + /// Use this constant when checking for or comparing against newline characters + /// in text processing, making the code more expressive and self-documenting. + static let newline: Character = "\n" + +}