MCPcopy Index your code
hub / github.com/csev/py4e / expandFormat

Function expandFormat

code/gmane/Chart.bundle.js:2083–2098  ·  view source on GitHub ↗
(format, locale)

Source from the content-addressed store, hash-verified

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

Callers 2

formatMomentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected