Merge pull request #873 from jessuni/patch-2

Fix typos
This commit is contained in:
Ilya Kantor 2019-04-02 08:54:59 +03:00 committed by GitHub
commit 6d111471ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ Here's what a search for a slash `'/'` looks like:
alert( "/".match(/\//) ); // '/'
```
From the other hand, if we're not using `/.../`, but create a regexp using `new RegExp`, then we no need to escape it:
On the other hand, if we're not using `/.../`, but create a regexp using `new RegExp`, then we don't need to escape it:
```js run
alert( "/".match(new RegExp("/")) ); // '/'