Fix typos

This commit is contained in:
Jess Uni 2019-03-26 20:59:52 +09:00 committed by GitHub
parent 706b1f26b2
commit 69aaf57e0e
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(/\//) ); // '/' 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 ```js run
alert( "/".match(new RegExp("/")) ); // '/' alert( "/".match(new RegExp("/")) ); // '/'