sebastienros / esprima-dotnet

Esprima .NET (BSD license) is a .NET port of the esprima.org project. It is a standard-compliant ECMAScript parser (also popularly known as JavaScript).
BSD 3-Clause "New" or "Revised" License
425 stars 75 forks source link

RegEx checking via C# Engine does not work the same as in Javascript #358

Closed jogibear9988 closed 1 year ago

jogibear9988 commented 1 year ago

See this regex:

   ^[\\d--\\d]+$

it is valid in Javascript and invalid in C#

(It's from the test262 testcase)

jogibear9988 commented 1 year ago

I added an issue at MS : https://github.com/dotnet/runtime/issues/79982