Skip to content

Commit 31f2529

Browse files
author
russom
committed
Merge branch 'form-control-1' of https://github.com/russom-g/Module-Onboarding into form-control-1
2 parents 6f5d72c + d001852 commit 31f2529

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Form-Controls/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ Writing that out as a series of questions to ask yourself:
2828
All fields are required.
2929
Do not write a form action for this project.
3030

31-
## Acceptnce Criteria
31+
> [!TIP]
32+
> To check whether the customer's name contains at least two non-space characters you may need to use a **regular expression** (or **regex** for short), which is a tool used to match patterns in text. If you wish to learn more about regular expressions there are plenty of resources on the web including the [official MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions), but for this task you can use this regex that we have pre-written for you: `.*\S.*\S.*`.
33+
>
34+
> Now you have the regular expression, it's up to you to figure out how to use it in the context of an HTML form!
35+
36+
## Acceptance Criteria
3237

3338
### Developers must test their work.
3439

0 commit comments

Comments
 (0)