Sha256: aeb979536276c2ef22dc35eae4bc72c61d69c01520d394f6572435d24e6ae512

Contents?: true

Size: 676 Bytes

Versions: 39

Compression:

Stored size: 676 Bytes

Contents

function defaultParsingFlags() {
    // We need to deep clone this object.
    return {
        empty           : false,
        unusedTokens    : [],
        unusedInput     : [],
        overflow        : -2,
        charsLeftOver   : 0,
        nullInput       : false,
        invalidMonth    : null,
        invalidFormat   : false,
        userInvalidated : false,
        iso             : false,
        parsedDateParts : [],
        meridiem        : null,
        rfc2822         : false,
        weekdayMismatch : false
    };
}

export default function getParsingFlags(m) {
    if (m._pf == null) {
        m._pf = defaultParsingFlags();
    }
    return m._pf;
}

Version data entries

39 entries across 38 versions & 7 rubygems

Version Path
card-1.100.0 mod/date/vendor/moment/src/lib/create/parsing-flags.js
card-1.99.6 mod/date/vendor/moment/src/lib/create/parsing-flags.js
card-1.99.5 mod/date/vendor/moment/src/lib/create/parsing-flags.js
card-1.99.4 mod/date/vendor/moment/src/lib/create/parsing-flags.js
card-1.99.3 mod/date/vendor/moment/src/lib/create/parsing-flags.js
card-1.99.2 mod/date/vendor/moment/src/lib/create/parsing-flags.js
ilog-0.4.1 node_modules/moment/src/lib/create/parsing-flags.js
ilog-0.4.0 node_modules/moment/src/lib/create/parsing-flags.js
ilog-0.3.3 node_modules/moment/src/lib/create/parsing-flags.js
card-1.99.1 mod/date/vendor/moment/src/lib/create/parsing-flags.js
card-1.99.0 mod/date/vendor/moment/src/lib/create/parsing-flags.js
jester-data-8.0.0 node_modules/moment/src/lib/create/parsing-flags.js
ezii-os-5.2.1 node_modules/moment/src/lib/create/parsing-flags.js
ezii-os-2.0.1 node_modules/moment/src/lib/create/parsing-flags.js
card-1.98.3 mod/date/vendor/moment/src/lib/create/parsing-flags.js
card-1.98.2 mod/date/vendor/moment/src/lib/create/parsing-flags.js
card-1.98.1 mod/date/vendor/moment/src/lib/create/parsing-flags.js
card-1.98.0 mod/date/vendor/moment/src/lib/create/parsing-flags.js
card-1.97.0.1 mod/date/vendor/moment/src/lib/create/parsing-flags.js
card-1.97.0 mod/date/vendor/moment/src/lib/create/parsing-flags.js