Skip to content

Commit

Permalink
1.7.2b
Browse files Browse the repository at this point in the history
- regex (installation.*ready) not working if case insensitive
  • Loading branch information
jtorjo committed Jan 21, 2016
1 parent 119e723 commit 3b35f4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/docs/history.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

- regex (installation.*ready) not working if case insensitive
- Runtime / svchost -> right click and color them (doesn't work)
- pictures 12 and 13

Expand All @@ -10,6 +9,8 @@
quora


1.7.2b
- regex (installation.*ready) not working if case insensitive

1.7.2a
- fix: Microsoft-Windows-TWinUI/Operational - does not work
Expand Down
1 change: 0 additions & 1 deletion src/lw_common/filter/filter_line.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ public class match_index {
try {
if (comparison == comparison_type.regex)
// 1.7.2+ - for multi-line logs, we should not rely on single-line. Perhaps in the future, I may revisit this,
// but for now, don't assume it's single line
//regex_ = case_sensitive ? new Regex(text, RegexOptions.Singleline) : new Regex(text, RegexOptions.IgnoreCase | RegexOptions.Singleline);
regex_ = case_sensitive ? new Regex(text) : new Regex(text, RegexOptions.IgnoreCase);
} catch (Exception e) {
Expand Down
3 changes: 2 additions & 1 deletion src/lw_common/ui/search/search_for.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public class search_for {
use_regex = is_auto_regex(text);
if ( use_regex)
try {
regex_ = new Regex(text, RegexOptions.Singleline);
// 1.7.2+ - for multi-line logs, we should not rely on single-line. Perhaps in the future, I may revisit this,
regex_ = case_sensitive ? new Regex(text) : new Regex(text, RegexOptions.IgnoreCase);
} catch {
regex_ = null;
}
Expand Down

0 comments on commit 3b35f4f

Please sign in to comment.