Skip to content

Add Filename Sanitation to Resolve String Matching Error#37

Merged
nabiladem merged 3 commits intomainfrom
cli
Feb 12, 2026
Merged

Add Filename Sanitation to Resolve String Matching Error#37
nabiladem merged 3 commits intomainfrom
cli

Conversation

@nabiladem
Copy link
Copy Markdown
Owner

Resolves #36

New filename sanitation that:

  • Removes all control characters and newlines using the regex /[\x00-\x1F\x7F]/g
  • If filename is empty, falls back to "image"
  • Uses the sanitized filename when appending to FormData

@nabiladem nabiladem self-assigned this Feb 12, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
git-fit Ready Ready Preview, Comment Feb 12, 2026 4:18am

@nabiladem nabiladem merged commit f4559fa into main Feb 12, 2026
3 checks passed
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.

Error: The string did not match the expected pattern.

1 participant