Skip to content
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

UnitTest on DotnetCore : Regex #74

Open
maitredede opened this issue Dec 19, 2016 · 2 comments
Open

UnitTest on DotnetCore : Regex #74

maitredede opened this issue Dec 19, 2016 · 2 comments
Labels

Comments

@maitredede
Copy link

Hi,

I have a error in a unit test on dotnet core.

File RegExpTests, method compile(), line Evaluate("x.compile('cde')");

The error is in RegExpInstance, when calling Compile("cde", null), at new Regex(pattern, ParseFlags(flags) | RegexOptions.Compiled);

It seams that the ECMAScript flag is causing this issue.

Here seams to be the revealant code in the dotnet core framework :
https://github.com/dotnet/corefx/blob/master/src/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Regex.cs#L174-L184

@paulbartrum
Copy link
Owner

Hmm, I'm only using the IgnoreCase, Multiline and Compiled flag, all of which should be allowed in conjunction with ECMAScript flag. Weird.

@maitredede
Copy link
Author

You can give it a try in PR #75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants