wallet 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wallet/wallet.rb +1 -1
- metadata +2 -2
data/lib/wallet/wallet.rb
CHANGED
@@ -98,7 +98,7 @@ class Wallet
|
|
98
98
|
|
99
99
|
private
|
100
100
|
def convert_time(time)
|
101
|
-
if !(time =~
|
101
|
+
if !(time =~ /^\ *\d+(?:\ +|\.)(?:hours?|minutes?|days?|seconds?)\ *$/)
|
102
102
|
raise YamlError.new(
|
103
103
|
"'#{time}' is not a valid time phrase. Valid phrases are a number followed by " +
|
104
104
|
"a space followed by 'hours' or 'minutes' or 'days' (or the singular versions of those)."
|