18F/identity-idp

View on GitHub
app/javascript/packages/normalize-yaml/visitors/collapse-spacing.js

Summary

Maintainability
A
0 mins
Test Coverage
export default /** @type {import('./').Visitor} */ (_options) => ({
  Scalar(_key, node) {
    if (typeof node.value === 'string') {
      node.value = node.value.replace(/ {2,}/g, ' ');
    }
  },
});