From 446205c7bd342422f4b4f14d6c8f36dc0b6cf468 Mon Sep 17 00:00:00 2001 From: Khloe Leclair Date: Sat, 16 Apr 2022 13:55:54 -0400 Subject: Add regex error checking, and display a message to the user when their regular expression has a syntax error. Additionally, use a non-capturing group to surround the user input when `Match whole word` is enabled in case alternates are being used. Finally, add a safety check to highlighting to avoid an infinite loop when zero-length matches happen. --- src/SMAPI.Web/wwwroot/Content/css/log-parser.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/SMAPI.Web/wwwroot/Content/css/log-parser.css') diff --git a/src/SMAPI.Web/wwwroot/Content/css/log-parser.css b/src/SMAPI.Web/wwwroot/Content/css/log-parser.css index 41b54e11..1d457e35 100644 --- a/src/SMAPI.Web/wwwroot/Content/css/log-parser.css +++ b/src/SMAPI.Web/wwwroot/Content/css/log-parser.css @@ -187,6 +187,11 @@ table caption { margin-top: 0.5em; } +#filters .filter-error { + color: #880000; +} + +#filters .filter-error, #filters .stats { margin-top: 0.5em; font-size: 0.75em; @@ -210,7 +215,7 @@ table caption { @media (max-width: 1019px) { #filters:not(.sticky) { - width: calc(100vw - 3em); + width: calc(100vw - 5em); } #filters { -- cgit