mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-25 22:05:51 +03:00
[PR #415] [MERGED] feat: add ADDRESS_CHECK_REGEX #569
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#569
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/415
Author: @dreamhunter2333
Created: 8/16/2024
Status: ✅ Merged
Merged: 8/16/2024
Merged by: @dreamhunter2333
Base:
main← Head:feature/dev📝 Commits (1)
d0db8fafeat: add ADDRESS_CHECK_REGEX📊 Changes
14 files changed (+74 additions, -20 deletions)
View changed files
📝
CHANGELOG.md(+5 -1)📝
frontend/package.json(+1 -1)📝
pages/package.json(+1 -1)📝
vitepress-docs/docs/en/cli.md(+3 -1)📝
vitepress-docs/docs/zh/guide/cli/worker.md(+3 -1)📝
vitepress-docs/package.json(+1 -1)📝
worker/package.json(+1 -1)📝
worker/src/admin_api/index.ts(+7 -1)📝
worker/src/common.ts(+36 -5)📝
worker/src/constants.ts(+1 -1)📝
worker/src/mails_api/index.ts(+6 -1)📝
worker/src/telegram_api/common.ts(+5 -4)📝
worker/src/types.d.ts(+1 -0)📝
worker/wrangler.toml.template(+3 -1)📄 Description
User description
#414
PR Type
Enhancement, Documentation
Description
newAddressfunction calls across multiple files to use an object for parameters.checkNameRegexfunction to validate address names againstADDRESS_CHECK_REGEX.Bindingstype to includeADDRESS_CHECK_REGEX./user_api/oauth2to the list of paths that bypass middleware.ADDRESS_CHECK_REGEXfeature.Changes walkthrough 📝
6 files
index.ts
Refactor `newAddress` function call to use object parametersworker/src/admin_api/index.ts
newAddressfunction call to use an object for parameters.enableCheckNameRegexparameter with a default value offalse.common.ts
Add name validation using `ADDRESS_CHECK_REGEX`worker/src/common.ts
checkNameRegexfunction to validate name againstADDRESS_CHECK_REGEX.newAddressfunction to includeenableCheckNameRegexparameter.index.ts
Refactor `newAddress` function call to use object parametersworker/src/mails_api/index.ts
newAddressfunction call to use an object for parameters.common.ts
Refactor `newAddress` function call to use object parametersworker/src/telegram_api/common.ts
newAddressfunction call to use an object for parameters.types.d.ts
Add `ADDRESS_CHECK_REGEX` to `Bindings` typeworker/src/types.d.ts
ADDRESS_CHECK_REGEXtoBindingstype.worker.ts
Add `/user_api/oauth2` to middleware bypass pathsworker/src/worker.ts
/user_api/oauth2to the list of paths that bypass middleware.4 files
CHANGELOG.md
Update CHANGELOG for `ADDRESS_CHECK_REGEX` featureCHANGELOG.md
ADDRESS_CHECK_REGEXfor address namevalidation.
cli.md
Document `ADDRESS_CHECK_REGEX` in CLI guidevitepress-docs/docs/en/cli.md
ADDRESS_CHECK_REGEX.worker.md
Document `ADDRESS_CHECK_REGEX` in CLI guide (Chinese)vitepress-docs/docs/zh/guide/cli/worker.md
ADDRESS_CHECK_REGEX.wrangler.toml.template
Add `ADDRESS_CHECK_REGEX` configuration exampleworker/wrangler.toml.template
ADDRESS_CHECK_REGEXconfiguration example.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.