clean.js 114 B

12345
  1. var trim = require('./trim');
  2. module.exports = function clean(str) {
  3. return trim(str).replace(/\s+/g, ' ');
  4. };