diff options
| author | Geremia Taglialatela <[email protected]> | 2022-09-21 09:39:09 +0200 |
|---|---|---|
| committer | Stefan Daschek <[email protected]> | 2022-09-21 20:40:13 +0200 |
| commit | 7eb5bef01e600938d13ca889d07b331ff5c4a6ba (patch) | |
| tree | 27ef3c217d42b6ff34a69960799a1889792bfe16 /lib/axlsx/util/constants.rb | |
| parent | abd64701cee4f5326c18241c24f872fb96268094 (diff) | |
| download | caxlsx-7eb5bef01e600938d13ca889d07b331ff5c4a6ba.tar.gz caxlsx-7eb5bef01e600938d13ca889d07b331ff5c4a6ba.zip | |
Move worksheet name forbidden chars to a constant
Diffstat (limited to 'lib/axlsx/util/constants.rb')
| -rw-r--r-- | lib/axlsx/util/constants.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/axlsx/util/constants.rb b/lib/axlsx/util/constants.rb index 3f30216f..f1c00e44 100644 --- a/lib/axlsx/util/constants.rb +++ b/lib/axlsx/util/constants.rb @@ -277,6 +277,9 @@ module Axlsx # worksheet maximum name length WORKSHEET_MAX_NAME_LENGTH = 31 + # worksheet name forbidden characters + WORKSHEET_NAME_FORBIDDEN_CHARS = '[]*/\?:'.freeze + # error messages RestrictionValidor ERR_RESTRICTION = "Invalid Data: %s. %s must be one of %s.".freeze |
