10 lines · 359 B · Swift
RawDownload
import Foundation public enum LogMetadata {    public static func secretSummary(_ value: String?) -> [String: String] {        let trimmed = value?.trimmingCharacters(in: .whitespacesAndNewlines) ?? ""        let state = trimmed.isEmpty ? "cleared" : "set"        let length = trimmed.count        return ["state": state, "length": "\(length)"]    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t