Skip to content

Commit a91fcf2

Browse files
committed
Add note to normalizeOrdinalDate function
1 parent 6f1b714 commit a91fcf2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Mf2/Parser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ function convertTimeFormat($time) {
240240

241241
/**
242242
* Normalize an ordinal date to YYYY-MM-DD
243+
* This function should only be called after validating the $dtValue
244+
* matches regex \d{4}-\d{2}
243245
* @param string $dtValue
244246
* @return string
245247
*/

0 commit comments

Comments
 (0)