diff options
| author | Randy Morgan <[email protected]> | 2012-09-30 09:06:45 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-09-30 09:06:45 +0900 |
| commit | 1232e91ae034f13a2e183b1c20d7af0e9d19112f (patch) | |
| tree | e422fe2bde70429669207163180de3111759fa8d /lib/axlsx/util/validators.rb | |
| parent | f931069c349a2507da4ec9f4fefa51aa246d5eb5 (diff) | |
| download | caxlsx-1232e91ae034f13a2e183b1c20d7af0e9d19112f.tar.gz caxlsx-1232e91ae034f13a2e183b1c20d7af0e9d19112f.zip | |
patched range validator
Diffstat (limited to 'lib/axlsx/util/validators.rb')
| -rw-r--r-- | lib/axlsx/util/validators.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/util/validators.rb b/lib/axlsx/util/validators.rb index 417de908..9c1ec741 100644 --- a/lib/axlsx/util/validators.rb +++ b/lib/axlsx/util/validators.rb @@ -29,7 +29,7 @@ module Axlsx else min < value && value < max end - raise ArgumentError, (ERR_RANGE % [v.inspect, min.to_s, max.to_s, inclusive]) unless passes + raise ArgumentError, (ERR_RANGE % [value.inspect, min.to_s, max.to_s, inclusive]) unless passes end end # Validates the value against the regular expression provided. |
