Regex works incorrect in Edge

Fixed Issue #15252990

Details

Author
Vadym M.
Created
Dec 28, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

/[1]+@[\w!$&*-.?^{}]+.[\w!$&*-.?^{}]+$/.test(‘q@.com’)
This code returns true in Microsoft Edge 40.15063.674.0, Microsoft EdgeHTML 15.15063

Also this issue doesn’t reproduce in following versions:
Microsoft Edge 38.14393.1066.0, Microsoft EdgeHTML 14.14393
Microsoft Edge 41.16299.15.0, Microsoft EdgeHTML 16.16299


  1. \w!$&*-.?^{}~

Attachments

0 attachments

    Comments and activity

    • I apologize, I did not notice that Markdown is used here.
      Code:
      /^[\w!\$&\*\-\.\?\^\{\}~]+@[\w!\$&\*\-\.\?\^\{\}~]+\.[\w!\$&\*\-\.\?\^\{\}~]+$/.test('q@.com')

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

    • Hello,

      Thank you for providing this information about the issue. We are pleased to report this feature is fixed in the current Public Stable build 16299 and the Insider Preview build 17046.

      Best Wishes,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Status to “Fixed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in