Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
Changed regexp for BezierCurve parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryochan7 committed Jan 29, 2023
1 parent 9c6cdd2 commit 39977fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DS4Windows/BezierCurveEditor/BezierCurve.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public string AsString
// Original assumption was values were in "en-US" data format (ie. period as decimal separator and comma as list separator).
// Attempt to not enforce that anymore. Do very basic parsing and rely on double.TryParse to handle confirming values are valid
var bezierMatch = System.Text.RegularExpressions.Regex.Match(value,
@"(.{4}),\s?(.{4}),\s?(.{4}),\s?(.{4})");
@"(.{3,9}),\s?(.{3,9}),\s?(.{3,9}),\s?(.{3,9})");
if (bezierMatch.Success)
{
//var bezierDef = value.Split(new Char[] { ',' }, 4);
Expand Down

0 comments on commit 39977fc

Please sign in to comment.