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
System.InvalidCastException: Unable to cast object of type 'RegExpCapturingGroup[]' to type 'RegexConversionOptions'.
at Jint.Runtime.Interpreter.Expressions.JintLiteralExpression.ResolveValue(EvaluationContext context)
RegExpParseMode itself is marked as obsolete, so it's necessary to use OnRegExp instead, however, the default Engine.DefaultConvertRegExpHandler used by engine is internal, so cannot be used.
The workaround found is to use the following code:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
There was an issue #2161 with
NullReferenceExceptionthat was resolved by settingWith upgrade to 4.9.0 that code now throws:
RegExpParseModeitself is marked as obsolete, so it's necessary to useOnRegExpinstead, however, the defaultEngine.DefaultConvertRegExpHandlerused by engine is internal, so cannot be used.The workaround found is to use the following code:
Is there any other way (more efficient) to prepare custom getter functions via code?
All reactions