Skip to content

Commit 30e5c71

Browse files
committed
Futher fix.
1 parent e4bd71b commit 30e5c71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CSharpToJavaScript/Walker.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,8 +2241,7 @@ public override void VisitLiteralExpression(LiteralExpressionSyntax node)
22412241
string _value = asToken.Text;
22422242

22432243
_value = _value.Replace("_","");
2244-
_value = _value.Replace(',', '.');
2245-
2244+
22462245
if (_value.EndsWith('f') ||
22472246
_value.EndsWith('d') ||
22482247
_value.EndsWith('m') ||
@@ -2279,6 +2278,8 @@ public override void VisitLiteralExpression(LiteralExpressionSyntax node)
22792278
}
22802279
}
22812280

2281+
_value = _value.Replace(',', '.');
2282+
22822283
VisitLeadingTrivia(asToken);
22832284

22842285
JSSB.Append(_value);

0 commit comments

Comments
 (0)