You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
the RegExpConstructor now returns a System.Text.RegularExpressions.Regex instead of a JSRegex this is a problem because sometimes you want to use the native regex instead of the one from .Net.
I personally think we should not truncate part of the JavaScript API. So the user can choose which API is preferred in his case.
For example, when writing a binding some JavaScript libraries expect a JSRegex.
Would you agree to re-introduce the native JavaScript API? :)
The text was updated successfully, but these errors were encountered:
Fable translates F# regex as JS regex, so you should be able to send them to any JS API. In fact, I only left the RegExpConstructor because when using System.Text.RegularExpressions.Regex the global flag is always set to emulate .NET behavior, when sometimes you don't want it for performance (or need the sticky flag).
Description
Hello,
the
RegExpConstructor
now returns aSystem.Text.RegularExpressions.Regex
instead of aJSRegex
this is a problem because sometimes you want to use the native regex instead of the one from .Net.I personally think we should not truncate part of the JavaScript API. So the user can choose which API is preferred in his case.
For example, when writing a binding some JavaScript libraries expect a JSRegex.
Would you agree to re-introduce the native JavaScript API? :)
The text was updated successfully, but these errors were encountered: