mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-02 15:13:46 +00:00
11 lines
213 B
TypeScript
11 lines
213 B
TypeScript
import { base64Decode } from "@opencode-ai/util/encode"
|
|
|
|
export function decode64(value: string | undefined) {
|
|
if (value === undefined) return
|
|
try {
|
|
return base64Decode(value)
|
|
} catch {
|
|
return
|
|
}
|
|
}
|