bendNoteRegex tweaks
This commit is contained in:
@@ -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; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user