Skip to content

Commit d45393f

Browse files
mikone117marijnh
authored andcommitted
Update 09_regexp.md
Typo in the example
1 parent 747fa81 commit d45393f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

09_regexp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,13 +1386,13 @@ let number = /^...$/;
13861386
for (let str of ["1", "-1", "+15", "1.55", ".5", "5.",
13871387
"1.3e2", "1E-4", "1e+12"]) {
13881388
if (!number.test(str)) {
1389-
console.log(`Failed to match '${s}'`);
1389+
console.log(`Failed to match '${str}'`);
13901390
}
13911391
}
13921392
for (let str of ["1a", "+-1", "1.2.3", "1+1", "1e4.5",
13931393
".5.", "1f5", "."]) {
13941394
if (number.test(str)) {
1395-
console.log(`Incorrectly accepted '${s}'`);
1395+
console.log(`Incorrectly accepted '${str}'`);
13961396
}
13971397
}
13981398
```

0 commit comments

Comments
 (0)