Skip to content

Commit 6bd58d2

Browse files
committed
fix format
1 parent 283f978 commit 6bd58d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/documentation/utilities/is-&-isnot.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Both the `is` and `isNot` take two arguments, a state or some data, and a value
2323
You can also use `is` and `isNot` with regular expressions to check if a string matches a pattern.
2424

2525
```javascript
26-
const [email, setEmail] = state('');
26+
const [email, setEmail] = state('')
2727

28-
const isEmailValid = is(email, /^[^\s@]+@[^\s@]+\.[^\s@]+$/);
29-
const isEmailInvalid = isNot(email, /^[^\s@]+@[^\s@]+\.[^\s@]+$/);
28+
const isEmailValid = is(email, /^[^\s@]+@[^\s@]+\.[^\s@]+$/)
29+
const isEmailInvalid = isNot(email, /^[^\s@]+@[^\s@]+\.[^\s@]+$/)
3030
```
3131

3232
### Checker

0 commit comments

Comments
 (0)