department-of-veterans-affairs/vets-website

View on GitHub
src/applications/facility-locator/utils/formatServiceName.js

Summary

Maintainability
A
1 hr
Test Coverage

Function formatServiceName has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const formatServiceName = service => {
  if (!service) return null;
  const lowerCaseService = service
    .replace(/([A-Z])/g, ' $1')
    .replace(/\s+/g, ' ')
Severity: Minor
Found in src/applications/facility-locator/utils/formatServiceName.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status