-
Notifications
You must be signed in to change notification settings - Fork 966
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
Use RegexOptions.Compiled if available #363
Conversation
@@ -34,7 +34,7 @@ public static class RomanNumeralExtensions | |||
private static readonly Regex ValidRomanNumeral = | |||
new Regex( | |||
"^(?i:(?=[MDCLXVI])((M{0,3})((C[DM])|(D?C{0,3}))?((X[LC])|(L?XX{0,2})|L)?((I[VX])|(V?(II{0,2}))|V)?))$", | |||
RegexOptions.None); | |||
RegexOptions.None | RegexOptionsUtil.Compiled); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could RegexOptions.None
be simply replaced by RegexOptionsUtil.Compiled
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
29c4d88
to
935bef4
Compare
Thanks @hazzik. Can you please add this to release notes? |
done |
Merged. Thanks. |
708778b
to
002cb06
Compare
I'm not quite sure what happened on reopen and merge here but the commit graph still looks intact!! |
I forced branch tip update so Github recognizes that this has been merged |
This is now released to NuGet. Thanks for the fix. |
No description provided.