diff --git a/OSGKeyboardShared/Services/AppContextDetector.swift b/OSGKeyboardShared/Services/AppContextDetector.swift index 844be95..d69906f 100644 --- a/OSGKeyboardShared/Services/AppContextDetector.swift +++ b/OSGKeyboardShared/Services/AppContextDetector.swift @@ -95,7 +95,7 @@ public struct AppContextDetector: Sendable { "if (", "if (", "} else", "} catch", "=> {", "-> {", ] - let hasIndentation = tail.contains(where: { $0 == "\n " || $0 == "\t" }) + let hasIndentation = tail.contains("\n ") || tail.contains("\t") let hasCodeKeyword = codeKeywords.contains(where: { tail.contains($0) }) if hasIndentation, hasCodeKeyword { return .code