wallet 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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)."
|