File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/truffleruby/stdlib/bigdecimal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 39
39
@ ImportStatic (BigDecimalType .class )
40
40
public abstract class CreateBigDecimalNode extends BigDecimalCoreMethodNode {
41
41
42
- private static final String exponent = "([eE][+-]?)?(\\ d*)" ;
43
- private static final Pattern NUMBER_PATTERN = Pattern .compile ("^([+-]?\\ d*\\ .?\\ d*" + exponent + ").*" );
44
- private static final Pattern ZERO_PATTERN = Pattern .compile ("^[+-]?0*\\ .?0*" + exponent );
42
+ private static final String EXPONENT = "([eE][+-]?)?(\\ d*)" ;
43
+ private static final Pattern NUMBER_PATTERN = Pattern .compile ("^([+-]?\\ d*\\ .?\\ d*" + EXPONENT + ").*" );
44
+ private static final Pattern ZERO_PATTERN = Pattern .compile ("^[+-]?0*\\ .?0*" + EXPONENT );
45
45
46
46
@ Child private AllocateObjectNode allocateNode = AllocateObjectNode .create ();
47
47
You can’t perform that action at this time.
0 commit comments