Skip to content

fix(core): keep emails and URLs in findFormValue - #347

Closed
kevin9327 wants to merge 1 commit into
vercel-labs:mainfrom
kevin9327:fix/find-form-value-dotted-literals
Closed

kevin9327 wants to merge 1 commit into
vercel-labs:mainfrom
kevin9327:fix/find-form-value-dotted-literals

Conversation

@kevin9327

Copy link
Copy Markdown
Contributor

Summary

findFormValue skipped any param whose value contained a ., on the assumption it was a dotted state path like form.email. Real field values also contain dots: john.doe@example.com, https://example.com, 1.2.3. Those were dropped, so the dashboard create-customer handler never received the email.

Only identifier.identifier strings are treated as path refs now. Emails, URLs, and versions are returned as literals. form.email still resolves against state.

Testing

  • pnpm exec vitest run packages/core/src/types.test.ts -t findFormValue
  • pnpm test (1216 passed)

AI-assisted (Grok)

findFormValue skipped any string containing a dot, treating it as a
state path. Emails, URLs, and versions were dropped, so the dashboard
create-customer handler never saw john.doe@example.com.

Only identifier.identifier strings are path refs now.
@vercel

vercel Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

@kevin9327 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@ctate

ctate commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the PR! Addressed in #353 and added you as a co-author.

@ctate ctate closed this Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants