MCPcopy Create free account
hub / github.com/github/gh-aw / hasWeekdaysSuffix

Method hasWeekdaysSuffix

pkg/parser/schedule_parser.go:570–576  ·  view source on GitHub ↗

hasWeekdaysSuffix checks if "on weekdays" is present at the end of tokens

()

Source from the content-addressed store, hash-verified

568
569// hasWeekdaysSuffix checks if "on weekdays" is present at the end of tokens
570func (p *ScheduleParser) hasWeekdaysSuffix() bool {
571 if len(p.tokens) < 2 {
572 return false
573 }
574 // Check if the last two tokens are "on" and "weekdays"
575 return p.tokens[len(p.tokens)-2] == "on" && p.tokens[len(p.tokens)-1] == "weekdays"
576}
577
578// extractTimeWithWeekdays extracts time specification, handling optional "on weekdays" suffix
579func (p *ScheduleParser) extractTimeWithWeekdays(startPos int, hasWeekdaysSuffix bool) (string, error) {

Callers 2

parseIntervalMethod · 0.95
parseBaseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected