We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 093d7e2 commit 9b29339Copy full SHA for 9b29339
src/lib/public-note.ts
@@ -106,7 +106,7 @@ export const detectPublicNoteMode = (s?: string): "structured" | "raw" => {
106
if (!s) return "raw"
107
try {
108
const obj = JSON.parse(s)
109
- const parsed = PublicNoteSchema.safeParse(obj)
+ const parsed = PublicNoteSchema.strict().safeParse(obj)
110
return parsed.success ? "structured" : "raw"
111
} catch {
112
return "raw"
0 commit comments