Skip to content

Commit fd3329c

Browse files
committed
Math::Complex: fix regex for scientific notation in test
1 parent f70f67c commit fd3329c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/Math-Complex/t/Complex.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ sub value {
560560
if (/^\s*\((.*),(.*)\)/) {
561561
return "cplx($1,$2)";
562562
}
563-
elsif (/^\s*([\-\+]?(?:\d+(\.\d+)?|\.\d+)(?:[e[\-\+]\d+])?)/) {
563+
elsif (/^\s*([\-\+]?(?:\d+(\.\d+)?|\.\d+)(?:[eE][\-\+]?\d+)?)/) {
564564
return "cplx($1,0)";
565565
}
566566
elsif (/^\s*\[(.*),(.*)\]/) {

0 commit comments

Comments
 (0)