Skip to content

Commit 2710730

Browse files
committed
Reformat code example in README
1 parent 2a392a3 commit 2710730

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ This is an email RegExp:
7575
And this is the same expression written in readable RegExp:
7676

7777
```js
78-
const allowedChar = notCharIn`<>()[]\\\\``.,;:@"`(whitespace);
78+
const allowedChar = notCharIn`<>()[]\\\\` `.,;:@"` (whitespace);
7979
const email = lineStart
8080
.capture.oneOf
8181
( // username
@@ -105,10 +105,10 @@ const email = lineStart
105105
)
106106
( // domain name
107107
oneOrMore(
108-
oneOrMore.charIn`a-z``A-Z``0-9``-`
108+
oneOrMore.charIn`a-z` `A-Z` `0-9` `-`
109109
.exactly`.`
110110
)
111-
.atLeast(2).charIn`a-z``A-Z`
111+
.atLeast(2).charIn`a-z` `A-Z`
112112
)
113113
.lineEnd
114114
.toRegExp();

0 commit comments

Comments
 (0)