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

Make regex in Parser case-insensitive with a timeout #924

Conversation

vb2ae
Copy link
Member

@vb2ae vb2ae commented Nov 5, 2024

Updated LongFormatRegularExpression in the Parser class to be case-insensitive by adding RegexOptions.IgnoreCase. Also set a timeout of 10 seconds using TimeSpan.FromSeconds(10) to prevent potential performance issues from long-running regex operations.

Updated LongFormatRegularExpression in the Parser class to be
case-insensitive by adding RegexOptions.IgnoreCase. Also set
a timeout of 10 seconds using TimeSpan.FromSeconds(10) to
prevent potential performance issues from long-running regex
operations.
@vb2ae vb2ae linked an issue Nov 5, 2024 that may be closed by this pull request
@vb2ae vb2ae requested a review from KasperSK November 5, 2024 13:12
Copy link
Member

Choose a reason for hiding this comment

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

Would this not change how Event and Action is parsed? So we match both Event and event?

Would that not break later string replace that looks for Event in uppercase?

@vb2ae
Copy link
Member Author

vb2ae commented Dec 17, 2024

good point going to close this pr

@vb2ae vb2ae closed this Dec 17, 2024
@vb2ae vb2ae deleted the 890-parserparse-dependencyobject-target-string-text-exception branch December 17, 2024 18:18
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.

Parser.Parse (DependencyObject target, String text) exception
2 participants