Skip to content

Commit

Permalink
Fixes #13: Fix TRUE_FALSE_PATTERN to perform exact match against "tru…
Browse files Browse the repository at this point in the history
…e" and "false" when inferring boolean cell type
  • Loading branch information
rcook committed Nov 2, 2014
1 parent fde9efb commit 2383f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xlsx_writer/cell.rb
Expand Up @@ -140,7 +140,7 @@ def log_base(number, base)
DATE_LENGTH = 'YYYY-MM-DD'.length
BOOLEAN_LENGTH = 'FALSE'.length + 1
JAN_1_1900 = Time.parse('1899-12-30 00:00:00 UTC')
TRUE_FALSE_PATTERN = %r{^true|false$}i
TRUE_FALSE_PATTERN = %r{^true$|^false$}i
BIG_DECIMAL = defined?(BigDecimal) ? BigDecimal : Struct.new

STYLE_NUMBER = {
Expand Down

0 comments on commit 2383f82

Please sign in to comment.