diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-17 11:17:45 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-24 10:03:50 +0200 |
| commit | 84a7132924b1c56f712a830b4e016a3c033923bf (patch) | |
| tree | 1bccc27e18be9287d568cd4c6313dbe33495acad /lib/axlsx/util/constants.rb | |
| parent | 14b7da239879d5299775c48666b43f3016add8ec (diff) | |
| download | caxlsx-84a7132924b1c56f712a830b4e016a3c033923bf.tar.gz caxlsx-84a7132924b1c56f712a830b4e016a3c033923bf.zip | |
Do not use collection literal in loops
Also refactors Page margins to avoid code duplication
Diffstat (limited to 'lib/axlsx/util/constants.rb')
| -rw-r--r-- | lib/axlsx/util/constants.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/util/constants.rb b/lib/axlsx/util/constants.rb index 138c8bf0..459e0099 100644 --- a/lib/axlsx/util/constants.rb +++ b/lib/axlsx/util/constants.rb @@ -166,8 +166,8 @@ module Axlsx # xml content type extensions XML_EX = "xml" - # jpeg extension - JPEG_EX = "jpeg" + # jpeg extensions + JPEG_EXS = ["jpeg", "jpg"].freeze # gif extension GIF_EX = "gif" |
