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

Function parseMonthNumber

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

Source from the content-addressed store, hash-verified

112663 return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;
112664}
112665function parseMonthNumber(d, string, i) {
112666 var n = numberRe.exec(string.slice(i, i + 2));
112667 return n ? (d.m = n[0] - 1, i + n[0].length) : -1;
112668}
112669function parseDayOfMonth(d, string, i) {
112670 var n = numberRe.exec(string.slice(i, i + 2));
112671 return n ? (d.d = +n[0], i + n[0].length) : -1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected