MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / weekdaysRegex

Function weekdaysRegex

tests/test_code/js/moment/moment.js:1749–1767  ·  view source on GitHub ↗
(isStrict)

Source from the content-addressed store, hash-verified

1747 }
1748
1749 function weekdaysRegex(isStrict) {
1750 if (this._weekdaysParseExact) {
1751 if (!hasOwnProp(this, '_weekdaysRegex')) {
1752 computeWeekdaysParse.call(this);
1753 }
1754 if (isStrict) {
1755 return this._weekdaysStrictRegex;
1756 } else {
1757 return this._weekdaysRegex;
1758 }
1759 } else {
1760 if (!hasOwnProp(this, '_weekdaysRegex')) {
1761 this._weekdaysRegex = defaultWeekdaysRegex;
1762 }
1763 return this._weekdaysStrictRegex && isStrict
1764 ? this._weekdaysStrictRegex
1765 : this._weekdaysRegex;
1766 }
1767 }
1768
1769 function weekdaysShortRegex(isStrict) {
1770 if (this._weekdaysParseExact) {

Callers

nothing calls this directly

Calls 1

hasOwnPropFunction · 0.85

Tested by

no test coverage detected