Adjusting the tests, since it is now adding the newline after the number.
if ( $exponent > 1 ) {
return self::parseError($s, $end, 'Number with several E' );
}
+ $end++;
// + sign is optional; - sign is required.
$end += strspn( $s, '-+', $end );
if ( !$len ) {
return self::parseError($s, $pos, 'No decimal digits after e, how many zeroes should be added?' );
}
- $end += $len + 1;
+ $end += $len;
}
} elseif( isset( $opChars[$ch] ) ) {
// Punctuation character. Search for the longest matching operator.
$suffix = ',shortVarName=0;';
$input = $prefix . $num . $suffix;
- $expected = $prefix . "\n" . $num . $suffix;
+ $expected = $prefix . $num . "\n" . $suffix;
$minified = JavaScriptMinifier::minify( $input );