import R from 'ramda';
import compose from './util/compose.js';
import trim from './trim.js';

// a -> a
const clean = compose(
  trim,
  R.replace(/\s{2}/, '')
);

export default clean

@@ -4,21 +4,39 @@
 ort 
-R from 'ramda
+compose from './util/compose.js
 ';%0Ai
@@ -37,30 +37,30 @@
 js';%0Aimport 
-compos
+replac
 e from './ut
@@ -54,38 +54,38 @@
 ce from './util/
-compos
+replac
 e.js';%0Aimport tr
@@ -153,10 +153,8 @@
 ,%0A  
-R.
 repl

Refactor clean function to use custom replace function