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

Use RegexOptions.Compiled if available #363

Merged
merged 0 commits into from
Dec 23, 2014
Merged

Use RegexOptions.Compiled if available #363

merged 0 commits into from
Dec 23, 2014

Conversation

hazzik
Copy link
Member

@hazzik hazzik commented Dec 19, 2014

No description provided.

@@ -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);
Copy link
Collaborator

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true

@MehdiK
Copy link
Member

MehdiK commented Dec 20, 2014

Thanks @hazzik. Can you please add this to release notes?

@hazzik
Copy link
Member Author

hazzik commented Dec 21, 2014

done

@MehdiK
Copy link
Member

MehdiK commented Dec 22, 2014

Merged. Thanks.

@MehdiK MehdiK closed this Dec 22, 2014
@hazzik hazzik reopened this Dec 23, 2014
@hazzik hazzik merged commit 002cb06 into master Dec 23, 2014
@hazzik hazzik deleted the regex-compiled branch December 23, 2014 10:07
@MehdiK
Copy link
Member

MehdiK commented Dec 24, 2014

I'm not quite sure what happened on reopen and merge here but the commit graph still looks intact!!

@hazzik
Copy link
Member Author

hazzik commented Dec 24, 2014

I forced branch tip update so Github recognizes that this has been merged

@MehdiK
Copy link
Member

MehdiK commented Jan 26, 2015

This is now released to NuGet. Thanks for the fix.

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

Successfully merging this pull request may close these issues.

None yet

3 participants