nymag/nunjucks-filters

View on GitHub
filters/strings/breakSpaces.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';
module.exports = function (str) {
  return str && str.replace(/\s/g, ' '); // convert   into actual, regular, freedom-loving spaces
};