Sun, 21 Jun 2009 18:49:06 +0100
Restore 'on day_name' match
ndp.lua | file | annotate | diff | comparison | revisions |
--- a/ndp.lua Sun Jun 21 18:48:40 2009 +0100 +++ b/ndp.lua Sun Jun 21 18:49:06 2009 +0100 @@ -132,6 +132,10 @@ function (month_name) time = find_next_month_by_name(time, month_name:match("%S+$")); end }; + { P"on "^0 * day_name / + function (day_name) + time = find_next_day_by_name(time, day_name:match("%S+$")); + end }; { P"in "^0 * ( quantity * P" " * unit_of_time ) * (P"s"^-1) / function (number_and_unit) local number, unit = number_and_unit:gsub("^in ", ""):match("^(.+)%s+(.-)s?$");