Skip to content

Commit ef797bf

Browse files
authored
Merge pull request javascript-tutorial#261 from YNataly/patch-5
Update article.md
2 parents 19065c7 + 38f4a7b commit ef797bf

File tree

1 file changed

+1
-1
lines changed
  • 5-regular-expressions/04-regexp-escaping

1 file changed

+1
-1
lines changed

5-regular-expressions/04-regexp-escaping/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ alert( "function g()".match(/g\(\)/) ); // "g()"
3030
If we're looking for a backslash `\`, then we should double it:
3131

3232
```js run
33-
alert( "1\2".match(/\\/) ); // '\'
33+
alert( "1\\2".match(/\\/) ); // '\'
3434
```
3535

3636
## A slash

0 commit comments

Comments
 (0)