Skip to content

Commit 935ed85

Browse files
authored
Fix typo in 9.7 (Escaping, special characters)
1 parent 633db6f commit 935ed85

File tree

1 file changed

+1
-1
lines changed
  • 9-regular-expressions/07-regexp-escaping

1 file changed

+1
-1
lines changed

9-regular-expressions/07-regexp-escaping/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ alert( "Chapter 5.1".match(regexp) ); // 5.1
9696

9797
- To search for special characters `pattern:[ \ ^ $ . | ? * + ( )` literally, we need to prepend them with a backslash `\` ("escape them").
9898
- We also need to escape `/` if we're inside `pattern:/.../` (but not inside `new RegExp`).
99-
- When passing a string `new RegExp`, we need to double backslashes `\\`, cause string quotes consume one of them.
99+
- When passing a string to `new RegExp`, we need to double backslashes `\\`, cause string quotes consume one of them.

0 commit comments

Comments
 (0)