Skip to content

Commit

Permalink
feat: upgrade names
Browse files Browse the repository at this point in the history
  • Loading branch information
JonDotsoy committed Dec 22, 2023
1 parent f8abf7c commit 14a0eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/crontab-parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ namespace monthExpressionPartParse {
number,
])
}
namespace dayWeekExpressionPartParse {
namespace dayOfWeekExpressionPartParse {
export const number = NumberValueExpressionPartParse(0, 6, ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'])
export const any = AnyValueExpressionPartParse
export const range = RangeValueExpressionPartParse(number, number)
Expand Down Expand Up @@ -312,7 +312,7 @@ const parseMinuteExpressionPart = (expressionPart: ExpressionPart): MathExpressi
const parseHourExpressionPart = (expressionPart: ExpressionPart): MathExpression => hourExpressionPartParse.all(expressionPart)
const parseDayMonthExpressionPart = (expressionPart: ExpressionPart): MathExpression => dayOfMonthExpressionPartParse.all(expressionPart)
const parseMonthExpressionPart = (expressionPart: ExpressionPart): MathExpression => monthExpressionPartParse.all(expressionPart)
const parseDayWeekExpressionPart = (expressionPart: ExpressionPart): MathExpression => dayWeekExpressionPartParse.all(expressionPart)
const parseDayWeekExpressionPart = (expressionPart: ExpressionPart): MathExpression => dayOfWeekExpressionPartParse.all(expressionPart)

const parseExpressionPart = (expressionPart: ExpressionPart, index: number): MathExpression => {
const parser = [parseMinuteExpressionPart, parseHourExpressionPart, parseDayMonthExpressionPart, parseMonthExpressionPart, parseDayWeekExpressionPart].at(index)
Expand Down

0 comments on commit 14a0eae

Please sign in to comment.