Merge pull request #2379 from vsemozhetbyt/patch-10

Update support note in 9.15 (Catastrophic backtracking)
This commit is contained in:
Ilya Kantor 2020-12-13 20:10:08 +03:00 committed by GitHub
commit 19d1e33263
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ let str = "An input string that takes a long time or even makes this regexp hang
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.
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).
## Simplified example