From af60bd1e46e8c30873598bd677986d683e83258d Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Fri, 29 Mar 2024 14:35:14 -0600 Subject: [PATCH] refactor --- Management/Models/Local/Quiz/LocalQuizQuestionAnswer.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Management/Models/Local/Quiz/LocalQuizQuestionAnswer.cs b/Management/Models/Local/Quiz/LocalQuizQuestionAnswer.cs index 2bf2dbb..1b2e71c 100644 --- a/Management/Models/Local/Quiz/LocalQuizQuestionAnswer.cs +++ b/Management/Models/Local/Quiz/LocalQuizQuestionAnswer.cs @@ -32,10 +32,9 @@ public record LocalQuizQuestionAnswer string startingQuestionPattern = @"^(\*?[a-z]?\))|\[\s*\]|\[\*\]|\^ "; int replaceCount = 0; - var text = Regex.Replace(input, startingQuestionPattern, (m) => - { - return replaceCount++ == 0 ? "" : m.Value; - }).Trim(); + var text = Regex + .Replace(input, startingQuestionPattern, (m) => replaceCount++ == 0 ? "" : m.Value) + .Trim(); return new LocalQuizQuestionAnswer() { Correct = isCorrect,