Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ファイル拡張子のバリデーションメッセージの改善 #276

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

oka4shi
Copy link
Member

@oka4shi oka4shi commented Apr 22, 2024

close #256

Copy link

cloudflare-workers-and-pages bot commented Apr 22, 2024

Deploying sos24-client with  Cloudflare Pages  Cloudflare Pages

Latest commit: b5be9e1
Status: ✅  Deploy successful!
Preview URL: https://a4c6966a.sos24-client.pages.dev
Branch Preview URL: https://renew-file-extension-validat.sos24-client.pages.dev

View logs

if (props.extensions && props.extensions.length >= 2) {
message = `ファイルの拡張子は${props.extensions?.join("、")}のいずれかにしてください`;
} else {
message = `ファイルの拡張子は${props.extensions?.join("")}にしてください`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これ、props.extensions`が指定されてないとバグりそうだが、props.extensionsが指定されることは今のところないので大丈夫そうかも

@oka4shi oka4shi requested a review from appare45 April 22, 2024 07:03
@appare45 appare45 merged commit 7027aac into develop Apr 22, 2024
5 checks passed
@appare45 appare45 deleted the renew-file-extension-validation-message branch April 22, 2024 07:59
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