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
|
|
}
|
|
}
|