Commit 1a5d8ea
authored
Fix too permissive regular expression (#724)
The dot needs to be escaped due to its special meaning in regular
expressions.
Currently, both `j.doe` and `jXdoe` are considered valid, contrary to
the task requirement that specifies that a single letter should be
followed by a dot.
I made this PR before (#710) but I accidentally closed that one.1 parent e23fa55 commit 1a5d8ea
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments