Skip to content

Commit f6e5387

Browse files
committed
some fixes
1 parent a12776f commit f6e5387

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 9-regular-expressions/07-regexp-escaping

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ alert( "/".match(/\//) ); // '/'
4646
З іншого боку, якщо ми не використовуємо `pattern:/.../`, а створюємо регулярний вираз за допомогою `new RegExp`, тоді нам не потрібно його екранувати:
4747

4848
```js run
49-
alert( "/".match(new RegExp("/")) ); // знайде /
49+
alert( "/".match(new RegExp("/")) ); // знаходить /
5050
```
5151

5252
## new RegExp

0 commit comments

Comments
 (0)