bendNoteRegex tweaks

This commit is contained in:
AJ
2025-05-08 07:41:01 -04:00
parent 214cc94816
commit 774012021c

View File

@@ -32,7 +32,10 @@ namespace EtchBendLines
/// <summary> /// <summary>
/// The regular expression pattern the bend note must match /// The regular expression pattern the bend note must match
/// </summary> /// </summary>
static readonly Regex bendNoteRegex = new Regex(@"(?<direction>UP|DOWN|DN)\s*(?<angle>\d*(\.\d*)?)°\s*R\s*(?<radius>\d*(\.\d*)?)"); static readonly Regex bendNoteRegex = new Regex(
@"\b(?<direction>UP|DOWN|DN)\s+(?<angle>\d+(\.\d+)?)°?\s*R\s*(?<radius>\d+(\.\d+)?)\b",
RegexOptions.Compiled | RegexOptions.IgnoreCase
);
public DxfDocument DxfDocument { get; private set; } public DxfDocument DxfDocument { get; private set; }