mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
fixed square brackets bug
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user