Skip to content

Commit

Permalink
numeric format '#','?' accepts, '$' fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
hnx8 committed Jul 2, 2018
1 parent c4ba602 commit 164dbde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xlsxwriter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -778,9 +778,9 @@ private static function determineNumberFormatType($num_format)
if (preg_match("/[Y]{2,4}/i", $num_format)) return 'n_date';
if (preg_match("/[D]{1,2}/i", $num_format)) return 'n_date';
if (preg_match("/[M]{1,2}/i", $num_format)) return 'n_date';
if (preg_match("/$/", $num_format)) return 'n_numeric';
if (preg_match("/%/", $num_format)) return 'n_numeric';
if (preg_match("/0/", $num_format)) return 'n_numeric';
if (preg_match('/\$/', $num_format)) return 'n_numeric';
if (preg_match('/%/', $num_format)) return 'n_numeric';
if (preg_match('/[0#?]/', $num_format)) return 'n_numeric';
return 'n_auto';
}
//------------------------------------------------------------------
Expand Down

0 comments on commit 164dbde

Please sign in to comment.