MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / expandFormat

Function expandFormat

static/plugins/chart.js/Chart.bundle.js:15327–15342  ·  view source on GitHub ↗
(format, locale)

Source from the content-addressed store, hash-verified

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

Callers 2

formatMomentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected