6 lines
116 B
JavaScript
6 lines
116 B
JavaScript
|
var trim = require('./trim');
|
||
|
|
||
|
module.exports = function clean(str) {
|
||
|
return trim(str).replace(/\s\s+/g, ' ');
|
||
|
};
|