open-orchestra/open-orchestra-cms-bundle

View on GitHub
BackofficeBundle/Resources/public/ecmascript/OpenOrchestra/Service/DataFormatter/DateFormatter.js

Summary

Maintainability
A
1 hr
Test Coverage

Function format has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    format(value) {
        let getGeneralPattern = function (originPattern) {
            return new RegExp(originPattern
            .replace('d', '[0-9]{2}')
            .replace('Y', '[0-9]{4}')

There are no issues that match your filters.

Category
Status