From 425ec2621d0eed6c416ad1d4a611320dded65ed2 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Fri, 8 Apr 2022 17:14:04 -0500 Subject: [PATCH] strip color keys from webfront form lists --- SharedLibraryCore/Utilities.cs | 1 + WebfrontCore/Views/Action/_ActionForm.cshtml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SharedLibraryCore/Utilities.cs b/SharedLibraryCore/Utilities.cs index e4b15f308..2acb4f346 100644 --- a/SharedLibraryCore/Utilities.cs +++ b/SharedLibraryCore/Utilities.cs @@ -154,6 +154,7 @@ namespace SharedLibraryCore } str = Regex.Replace(str, @"(\^+((?![a-z]|[A-Z]).){0,1})+", ""); + str = Regex.Replace(str, @"\(Color::(.{1,16})\)", ""); return str; } diff --git a/WebfrontCore/Views/Action/_ActionForm.cshtml b/WebfrontCore/Views/Action/_ActionForm.cshtml index cc9ea9553..3c61cb420 100644 --- a/WebfrontCore/Views/Action/_ActionForm.cshtml +++ b/WebfrontCore/Views/Action/_ActionForm.cshtml @@ -21,7 +21,7 @@ } @@ -48,4 +48,4 @@ } } - \ No newline at end of file +