Skip to content

Commit

Permalink
Allow duration as value
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkup committed Oct 31, 2024
1 parent 01074dc commit f5e56f6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ object FixInvalidDayOffsetPreprocessor : StreamPreprocessor() {
// Examples:
// TRIGGER:-P2DT
// TRIGGER:-PT2D
"^(DURATION|TRIGGER):-?P((T-?\\d+D)|(-?\\d+DT))\$",
// REFRESH-INTERVAL;VALUE=DURATION:PT1D
"(?:^|=)(DURATION|TRIGGER):-?P((T-?\\d+D)|(-?\\d+DT))$",
setOf(RegexOption.MULTILINE, RegexOption.IGNORE_CASE)
)

Expand Down

0 comments on commit f5e56f6

Please sign in to comment.