(format, locale)
| 15325 | } |
| 15326 | |
| 15327 | function expandFormat(format, locale) { |
| 15328 | var i = 5; |
| 15329 | |
| 15330 | function replaceLongDateFormatTokens(input) { |
| 15331 | return locale.longDateFormat(input) || input; |
| 15332 | } |
| 15333 | |
| 15334 | localFormattingTokens.lastIndex = 0; |
| 15335 | while (i >= 0 && localFormattingTokens.test(format)) { |
| 15336 | format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); |
| 15337 | localFormattingTokens.lastIndex = 0; |
| 15338 | i -= 1; |
| 15339 | } |
| 15340 | |
| 15341 | return format; |
| 15342 | } |
| 15343 | |
| 15344 | var match1 = /\d/; // 0 - 9 |
| 15345 | var match2 = /\d\d/; // 00 - 99 |
no outgoing calls
no test coverage detected