(format, locale)
| 2081 | } |
| 2082 | |
| 2083 | function expandFormat(format, locale) { |
| 2084 | var i = 5; |
| 2085 | |
| 2086 | function replaceLongDateFormatTokens(input) { |
| 2087 | return locale.longDateFormat(input) || input; |
| 2088 | } |
| 2089 | |
| 2090 | localFormattingTokens.lastIndex = 0; |
| 2091 | while (i >= 0 && localFormattingTokens.test(format)) { |
| 2092 | format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); |
| 2093 | localFormattingTokens.lastIndex = 0; |
| 2094 | i -= 1; |
| 2095 | } |
| 2096 | |
| 2097 | return format; |
| 2098 | } |
| 2099 | |
| 2100 | var match1 = /\d/; // 0 - 9 |
| 2101 | var match2 = /\d\d/; // 00 - 99 |
no outgoing calls
no test coverage detected