Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit f5e56f6

Browse files
committed
Allow duration as value
1 parent 01074dc commit f5e56f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/main/kotlin/at/bitfire/ical4android/validation/FixInvalidDayOffsetPreprocessor.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ object FixInvalidDayOffsetPreprocessor : StreamPreprocessor() {
1414
// Examples:
1515
// TRIGGER:-P2DT
1616
// TRIGGER:-PT2D
17-
"^(DURATION|TRIGGER):-?P((T-?\\d+D)|(-?\\d+DT))\$",
17+
// REFRESH-INTERVAL;VALUE=DURATION:PT1D
18+
"(?:^|=)(DURATION|TRIGGER):-?P((T-?\\d+D)|(-?\\d+DT))$",
1819
setOf(RegexOption.MULTILINE, RegexOption.IGNORE_CASE)
1920
)
2021

0 commit comments

Comments
 (0)