lib/chronic/pointer.rb in chronic-0.5.0 vs lib/chronic/pointer.rb in chronic-0.6.0
- old
+ new
@@ -17,11 +17,10 @@
# @return [Pointer, nil]
def self.scan_for_all(token)
scan_for token, self,
{
/\bpast\b/ => :past,
- /\bfuture\b/ => :future,
- /\bin\b/ => :future
+ /\b(?:future|in)\b/ => :future,
}
end
def to_s
'pointer-' << @type.to_s