We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to build this code:
public const string Pattern2 = "^[a-zA-Z0-9._%+-]{1,64}@[a-zA-Z0-9.-]{1,255}\\.[a-zA-Z]{2,}$"; public const string Pattern3 = """^[a-zA-Z0-9._%+-]{1,64}@[a-zA-Z0-9.-]{1,255}\.[a-zA-Z]{2,}$"""; [String(minLength: 6, maxLength: 99,Pattern = Pattern1)] public readonly partial record struct Email;
I get this error for both ways of arranging the pattern:
0>PrimitiveRepository.g.cs(35,200): Error CS1009 : Unrecognized escape sequence
The text was updated successfully, but these errors were encountered:
After some more testing, I realise that the code generation fails when there are escaped characters in the pattern. Anything with the '\' character.
Sorry, something went wrong.
No branches or pull requests
When I try to build this code:
I get this error for both ways of arranging the pattern:
The text was updated successfully, but these errors were encountered: