chronic icon indicating copy to clipboard operation
chronic copied to clipboard

Bug/Exception: NoMethodError: undefined method `begin' for nil:NilClass

Open bragboy opened this issue 7 years ago • 1 comments

This works

Chronic.parse("five years after today")
=> 2023-07-02 17:30:00 +0200

However this does not!

Chronic.parse("five years after 11 May 2017")
NoMethodError: undefined method `begin' for nil:NilClass
from /.../chronic-0.10.2/lib/chronic/repeaters/repeater_year.rb:48:in `offset'

I am fine if it returns nil, but not an exception

bragboy avatar Jul 02 '18 10:07 bragboy

It's fixed/works in my rewrite branch.

davispuh avatar Jul 03 '18 15:07 davispuh