clean.js 116 B

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