engagementgamelab/CivicSeed

View on GitHub
server/utils/date-format.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function dateFormat has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var dateFormat = function () {
    var    token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,
        timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
        timezoneClip = /[^-+\dA-Z]/g,
        pad = function (val, len) {
Severity: Major
Found in server/utils/date-format.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status