Skip to content

Commit

Permalink
Force radix character to a PERIOD
Browse files Browse the repository at this point in the history
fixes stinky locales that don't use the correct radix character
  • Loading branch information
Toxic-Cookie committed Oct 13, 2023
1 parent c2cba25 commit 35202ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FieldExpressions/Core/AllowExpressionsInFields.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static bool Prefix(PrimitiveMemberEditor __instance, ref SyncRef<TextEditor> ___
{
if (structFieldAccessor.TargetType != typeof(string))
{
if (PrimitiveTryParsers.GetParser(structFieldAccessor.TargetType)(evaluator.Evaluate(____textEditor.Target.Text.Target.Text).ToString(), out var _parsed))
if (PrimitiveTryParsers.GetParser(structFieldAccessor.TargetType)(evaluator.Evaluate(____textEditor.Target.Text.Target.Text.Replace(',', '.')).ToString(), out var _parsed))
{
__instance.SetMemberValue(_parsed);
}
Expand Down

0 comments on commit 35202ad

Please sign in to comment.