Version 1
[yaffs-website] / node_modules / underscore.string / clean.js
diff --git a/node_modules/underscore.string/clean.js b/node_modules/underscore.string/clean.js
new file mode 100644 (file)
index 0000000..16a09d0
--- /dev/null
@@ -0,0 +1,5 @@
+var trim = require('./trim');
+
+module.exports = function clean(str) {
+  return trim(str).replace(/\s\s+/g, ' ');
+};