-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regex seems to yield different results with Fable #2322
Comments
Ok, it must be a bug with .NET 5 then, I evaluated it with dotnetfiddle.net that's probably still running on an earlier version. |
.NET 5 behaves differently on Windows in regards to the previous versions, see dotnet/runtime#43736. This probably affects Regex as well. Also, note that Fable translates to JavaScript and isn't a fully fledged .NET runtime for the browser. So this is actually a mismatch between .NET and the browser. |
Thanks @inosik ! Yes, sorry. Forgot to say that, as mention in the docs, regex in Fable behave as if you're using the RegexOptions.ECMAScript flag (no named groups for example) so it's better to use it explicitly for a proper comparison. |
Repro code
Related information
The text was updated successfully, but these errors were encountered: