summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/num_data_source.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-05-23 13:42:55 +0200
committerGeremia Taglialatela <[email protected]>2023-05-23 13:42:55 +0200
commit28b8b1a72affbab9ca81eb7629e9557adca372f1 (patch)
treec2d0e545c4e171b7633013162ff5a076e20bcf9c /lib/axlsx/drawing/num_data_source.rb
parent6752225bbb8a9eec905ec02a98f1a25a309c404a (diff)
downloadcaxlsx-28b8b1a72affbab9ca81eb7629e9557adca372f1.tar.gz
caxlsx-28b8b1a72affbab9ca81eb7629e9557adca372f1.zip
Improve cell type from value implementation
- Use `Regexp.match?` instead of `=~` when match is not needed - Use `Regexp.match` instead of `string.match` for uniformity ``` match?: 7335121.2 i/s =~: 2329358.3 i/s - 3.15x (± 0.00) slower ```
Diffstat (limited to 'lib/axlsx/drawing/num_data_source.rb')
0 files changed, 0 insertions, 0 deletions