minor
This commit is contained in:
parent
b2f89741a0
commit
3465665ca7
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ We've seen this method already. It returns the position of the first match or `-
|
|||
```js run
|
||||
let str = "A drop of ink may make a million think";
|
||||
|
||||
alert( str.search( *!*/a/i*/!* ) ); // 0 (the first position)
|
||||
alert( str.search( *!*/a/i*/!* ) ); // 0 (first match at zero position)
|
||||
```
|
||||
|
||||
**The important limitation: `search` only finds the first match.**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue