Skip to content

fix(auth): spell isLikelyEmail ASCII guard with printable bounds (no control char) - #3613

Merged
os-zhuang merged 1 commit into
mainfrom
claude/email-regex-hygiene-3566
Jul 27, 2026
Merged

fix(auth): spell isLikelyEmail ASCII guard with printable bounds (no control char)#3613
os-zhuang merged 1 commit into
mainfrom
claude/email-regex-hygiene-3566

Conversation

@baozhoutao

Copy link
Copy Markdown
Contributor

Tiny hygiene follow-up to the merged #3572 (framework#3566).

The non-ASCII guard added there was written as [^\x00-\x7f], whose regex literal embeds a control character (\x00) — flagged by eslint no-control-regex. Rewrite as [^\x20-\x7e]:

  • Identical behaviour — anything outside printable ASCII fails the email pre-filter (emails are printable ASCII; whitespace is already rejected separately).
  • No control character in the pattern.
  • Matches the objectui side's isPlausibleEmail, keeping the two implementations spelled the same.

Pure cleanup; admin-user-endpoints.test.ts (non-ASCII rejection cases) stays green.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
objectstack Ignored Ignored Jul 27, 2026 9:28am

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation tooling size/s labels Jul 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/plugin-auth.

9 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/deployment/cli.mdx (via @objectstack/plugin-auth)
  • content/docs/deployment/production-readiness.mdx (via @objectstack/plugin-auth)
  • content/docs/kernel/services-checklist.mdx (via @objectstack/plugin-auth)
  • content/docs/permissions/authentication.mdx (via @objectstack/plugin-auth)
  • content/docs/permissions/sso.mdx (via @objectstack/plugin-auth)
  • content/docs/plugins/index.mdx (via @objectstack/plugin-auth)
  • content/docs/plugins/packages.mdx (via @objectstack/plugin-auth)
  • content/docs/releases/implementation-status.mdx (via @objectstack/plugin-auth)
  • content/docs/releases/v9.mdx (via @objectstack/plugin-auth)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

@os-zhuang
os-zhuang merged commit 5faeac6 into main Jul 27, 2026
16 checks passed
@os-zhuang
os-zhuang deleted the claude/email-regex-hygiene-3566 branch July 27, 2026 09:43
…control char)

Mirror the objectui hygiene fix: `[^\x20-\x7e]` instead of `[^\x00-\x7f]` so the
regex literal carries no control character (eslint no-control-regex). Same
semantics — anything outside printable ASCII fails the email pre-filter.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants