minor fixes
This commit is contained in:
parent
19d1e33263
commit
27c30303fa
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,9 @@ let str = "An input string that takes a long time or even makes this regexp hang
|
||||||
alert( regexp.test(str) );
|
alert( regexp.test(str) );
|
||||||
```
|
```
|
||||||
|
|
||||||
To be fair, let's note that some regular expression engines can handle such a search effectively. But most of them can't. Browser engines usually hang (Google Chrome can handle such a search since version 88 due to a new experimental regular expression engine shipped in V8, JavaScript engine for browsers and Node.js).
|
To be fair, let's note that some regular expression engines can handle such a search effectively, while some can't.
|
||||||
|
|
||||||
|
For example, V8 engine version starting from 8.8 can handle such a search (so Google Chrome 88 doesn't hang here).
|
||||||
|
|
||||||
## Simplified example
|
## Simplified example
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue