danielroe / danielroe/page-speed.dev

Implement domain validation for client-side input ✅

Open
#19 4 comments 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
Vue
Stars
469
Forks
21
Avg merge
22h 43m
Merged PRs (30d)
16

Description

### Reproduce the issue ⚡️

Enter the value "ghost" into the input box. On form submission the request is subsequently processed and fails as this is not a legitimate domain.

#### Photographic evidence 📷

Screenshot 2024-02-11 at 21 22 48

### Suggested improvements 🔨

Implement client-side logic to validate the input and prevent form submission if the input does not take the form of a legitimate domain. This is most likely to take the form of a Regular Expression that validates the input and enables form submission once satisfied.

Subsequently, this will leave the error message for domain forms that most likely aren't actually live or legitimate domain requests:

Screenshot 2024-02-11 at 21 27 11

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.