Merge pull request #11 from hkgood/cursor/fix-app-context-indent-check-6baf

fix: AppContextDetector indentation check type error
This commit is contained in:
cursor[bot]
2026-07-03 08:15:07 +00:00
committed by GitHub
@@ -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