Support year and month matches in YAML rules