src/applications/facility-locator/utils/formatServiceName.js
Function formatServiceName
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const formatServiceName = service => {
if (!service) return null;
const lowerCaseService = service
.replace(/([A-Z])/g, ' $1')
.replace(/\s+/g, ' ')