Fix typos
This commit is contained in:
parent
706b1f26b2
commit
69aaf57e0e
1 changed files with 1 additions and 1 deletions
|
@ -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("/")) ); // '/'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue