MCPcopy
hub / github.com/microsoft/SandDance / formatLookup

Function formatLookup

docs/app/js/sanddance-app.js:112623–112628  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

112621 return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
112622}
112623function formatLookup(names) {
112624 return new Map(names.map((name, i)=>[
112625 name.toLowerCase(),
112626 i
112627 ]));
112628}
112629function parseWeekdayNumberSunday(d, string, i) {
112630 var n = numberRe.exec(string.slice(i, i + 1));
112631 return n ? (d.w = +n[0], i + n[0].length) : -1;

Callers 1

formatLocaleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected