(format, locale)
| 526 | } |
| 527 | |
| 528 | function expandFormat(format, locale) { |
| 529 | var i = 5; |
| 530 | |
| 531 | function replaceLongDateFormatTokens(input) { |
| 532 | return locale.longDateFormat(input) || input; |
| 533 | } |
| 534 | |
| 535 | localFormattingTokens.lastIndex = 0; |
| 536 | while (i >= 0 && localFormattingTokens.test(format)) { |
| 537 | format = format.replace( |
| 538 | localFormattingTokens, |
| 539 | replaceLongDateFormatTokens |
| 540 | ); |
| 541 | localFormattingTokens.lastIndex = 0; |
| 542 | i -= 1; |
| 543 | } |
| 544 | |
| 545 | return format; |
| 546 | } |
| 547 | |
| 548 | var defaultLongDateFormat = { |
| 549 | LTS: 'h:mm:ss A', |
no test coverage detected