fixed square brackets bug

This commit is contained in:
2024-03-29 15:08:15 -06:00
parent af60bd1e46
commit 8df3a34dde
3 changed files with 31 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ using System.Diagnostics;
public interface ITraceableMessage
{
public ActivitySpanId? ParentSpan {get;}
public ActivityTraceId? ParentTrace {get;}
public ActivitySpanId? ParentSpan { get; }
public ActivityTraceId? ParentTrace { get; }
}

View File

@@ -153,7 +153,7 @@ public record LocalQuizQuestion
var answerLinesRaw = linesWithoutPoints[indexOfAnswerStart..];
var answerStartPattern = @"^(\*?[a-z]?\))|\[\s*\]|\[\*\]|\^";
var answerStartPattern = @"^(\*?[a-z]?\))|(?<!\S)\[\s*\]|\[\*\]|\^";
var answerLines = answerLinesRaw.Aggregate(new List<string>(), (acc, line) =>
{
var isNewAnswer = Regex.IsMatch(line, answerStartPattern);