mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
perf(native): avoid sanitizing snapshot values twice (#20271)
This commit is contained in:
@@ -238,11 +238,10 @@ public enum SnapshotRenderHeuristics {
|
||||
if roleText == "heading", Int(value) != nil {
|
||||
return nil
|
||||
}
|
||||
let clean = sanitize(value)
|
||||
if roleText == "text" || roleText == "text entry area" || roleText == "scroll bar" || roleText == "value indicator" {
|
||||
return " \(clean)"
|
||||
return " \(value)"
|
||||
}
|
||||
return ", Value: \(clean)"
|
||||
return ", Value: \(value)"
|
||||
}
|
||||
|
||||
private static func markdownEscaped(_ value: String) -> String {
|
||||
|
||||
Reference in New Issue
Block a user