Regex expression test function makes Chrome freeze
Reported by
clement....@finanzero.com.br,
Jan 9 2018
|
||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Steps to reproduce the problem:
1. var regex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
2. regex.test("testesdeho.mologacaofintechcbss@");
3.
What is the expected behavior?
Must return false
What went wrong?
Chrome is freezing
Did this work before? N/A
Chrome version: 63.0.3239.132 Channel: stable
OS Version: 16.04
Flash Version:
,
Jan 10 2018
,
Jan 10 2018
Unable to reproduce the issue on ubuntu 14.04 and 17.10 using chrome reported version #63.0.3239.132 and latest dev #65.0.3315.3.
Attached a screen shot for reference.
Following are the steps followed to reproduce the issue.
------------
1. Opened console and pasted var regex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
2. regex.test("testesdeho.mologacaofintechcbss@");
3. Observed that expression returned false after 3 seconds and chrome did not freeze.
As the reported OS version is 16.04 and ET team doesn't have that OS version to reproduce the issue . Hence, forwarding the issue to inhouse team for further investigation.
Thanks...!!
,
Jan 10 2018
Unable to reproduce
,
Jan 11 2018
Steps to reproduce the problem:
var regex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
regex.test("testesdeho.mologacaofintechcbss@gmail"); // <--typo
// This freeze Chrome
// Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
|
||||
►
Sign in to add a comment |
||||
Comment 1 by woxxom@gmail.com
, Jan 9 2018