File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
main/java/com/itextpdf/svg/renderers/impl
test/java/com/itextpdf/svg/renderers/impl Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ String separateDecimalPoints(String input) {
328
328
329
329
if (c == '.' ) {
330
330
fractionalPartAfterDecimalPoint = true ;
331
- } else if (c == 'e' ) {
331
+ } else if (Character . toLowerCase ( c ) == 'e' ) {
332
332
exponentSignMagnitude = true ;
333
333
}
334
334
Original file line number Diff line number Diff line change @@ -197,4 +197,13 @@ public void exponentInNumberTest01() {
197
197
Assert .assertEquals (expected , actual );
198
198
}
199
199
200
+ @ Test
201
+ public void exponentInNumberTest02 () {
202
+ PathSvgNodeRenderer path = new PathSvgNodeRenderer ();
203
+ String input = "C 268.88888888888886 67.97916666666663e+10 331.1111111111111 -2.842170943040401E-14 393.3333333333333 -2.842170943040401E-14" ;
204
+
205
+ String expected = "C 268.88888888888886 67.97916666666663e+10 331.1111111111111 -2.842170943040401E-14 393.3333333333333 -2.842170943040401E-14" ;
206
+ String actual = path .separateDecimalPoints (input );
207
+ Assert .assertEquals (expected , actual );
208
+ }
200
209
}
You can’t perform that action at this time.
0 commit comments