Merge pull request #11 from hkgood/cursor/fix-app-context-indent-check-6baf
fix: AppContextDetector indentation check type error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user