We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18eceb commit 6c23101Copy full SHA for 6c23101
parser.go
@@ -18,7 +18,7 @@ const (
18
Dom
19
Month
20
Dow
21
- DowOptinal
+ DowOptional
22
Descriptor
23
)
24
@@ -47,7 +47,7 @@ type Parser struct {
47
48
func NewParser(options ParseOption) Parser {
49
optionals := 0
50
- if options&DowOptinal > 0 {
+ if options&DowOptional > 0 {
51
options |= Dow
52
optionals++
53
}
@@ -120,7 +120,7 @@ func expandFields(fields []string, options ParseOption) []string {
120
121
122
var defaultParser = NewParser(
123
- Second | Minute | Hour | Dom | Month | DowOptinal | Descriptor,
+ Second | Minute | Hour | Dom | Month | DowOptional | Descriptor,
124
125
126
// Parse returns a new crontab schedule representing the given spec.
0 commit comments