MCPcopy Create free account
hub / github.com/microsoft/SandDance / parsePeriod

Function parsePeriod

docs/app/js/sanddance-app.js:112511–112514  ·  view source on GitHub ↗
(d, string, i)

Source from the content-addressed store, hash-verified

112509 return j;
112510 }
112511 function parsePeriod(d, string, i) {
112512 var n = periodRe.exec(string.slice(i));
112513 return n ? (d.p = periodLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
112514 }
112515 function parseShortWeekday(d, string, i) {
112516 var n = shortWeekdayRe.exec(string.slice(i));
112517 return n ? (d.w = shortWeekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected