summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/util/validators.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-09-30 09:06:45 +0900
committerRandy Morgan <[email protected]>2012-09-30 09:06:45 +0900
commit1232e91ae034f13a2e183b1c20d7af0e9d19112f (patch)
treee422fe2bde70429669207163180de3111759fa8d /lib/axlsx/util/validators.rb
parentf931069c349a2507da4ec9f4fefa51aa246d5eb5 (diff)
downloadcaxlsx-1232e91ae034f13a2e183b1c20d7af0e9d19112f.tar.gz
caxlsx-1232e91ae034f13a2e183b1c20d7af0e9d19112f.zip
patched range validator
Diffstat (limited to 'lib/axlsx/util/validators.rb')
-rw-r--r--lib/axlsx/util/validators.rb2
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.