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

Function monthsShortRegex

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

Source from the content-addressed store, hash-verified

1127 }
1128
1129 function monthsShortRegex(isStrict) {
1130 if (this._monthsParseExact) {
1131 if (!hasOwnProp(this, '_monthsRegex')) {
1132 computeMonthsParse.call(this);
1133 }
1134 if (isStrict) {
1135 return this._monthsShortStrictRegex;
1136 } else {
1137 return this._monthsShortRegex;
1138 }
1139 } else {
1140 if (!hasOwnProp(this, '_monthsShortRegex')) {
1141 this._monthsShortRegex = defaultMonthsShortRegex;
1142 }
1143 return this._monthsShortStrictRegex && isStrict
1144 ? this._monthsShortStrictRegex
1145 : this._monthsShortRegex;
1146 }
1147 }
1148
1149 function monthsRegex(isStrict) {
1150 if (this._monthsParseExact) {

Callers

nothing calls this directly

Calls 1

hasOwnPropFunction · 0.85

Tested by

no test coverage detected