@@ -36,24 +36,24 @@ var formatSignature = R.curry(function(options, filename, line, signature) {
3636var parseLine = R . curry ( function ( options , filename , line , value ) {
3737 return R . pipe (
3838 R . replace ( / ^ \s + / , '' ) ,
39- R . cond ( [ R . pipe ( R . indexOf ( options . headingPrefix ) , R . equals ( 0 ) ) ,
40- R . pipe ( R . drop ( R . length ( options . headingPrefix ) ) ,
41- R . replace ( / ^ [ ] / , '' ) ,
42- formatSignature ( options , filename , line ) ) ] ,
43- [ R . pipe ( R . indexOf ( options . prefix ) , R . equals ( 0 ) ) ,
44- R . pipe ( R . drop ( R . length ( options . prefix ) ) ,
45- R . replace ( / ^ [ ] / , '' ) ,
46- R . concat ( R . __ , '\n' ) ) ] ,
47- [ R . T ,
48- R . always ( '\n' ) ] )
39+ R . cond ( [ [ R . pipe ( R . indexOf ( options . headingPrefix ) , R . equals ( 0 ) ) ,
40+ R . pipe ( R . drop ( R . length ( options . headingPrefix ) ) ,
41+ R . replace ( / ^ [ ] / , '' ) ,
42+ formatSignature ( options , filename , line ) ) ] ,
43+ [ R . pipe ( R . indexOf ( options . prefix ) , R . equals ( 0 ) ) ,
44+ R . pipe ( R . drop ( R . length ( options . prefix ) ) ,
45+ R . replace ( / ^ [ ] / , '' ) ,
46+ R . concat ( R . __ , '\n' ) ) ] ,
47+ [ R . T ,
48+ R . always ( '\n' ) ] ] )
4949 ) ( value ) ;
5050} ) ;
5151
5252
5353//. parseFile :: Options -> String -> String
5454var parseFile = R . curry ( function ( options , filename ) {
5555 return R . pipe (
56- fs . readFileSync ,
56+ R . unary ( fs . readFileSync ) ,
5757 String ,
5858 R . match ( / ^ .* $ / gm) ,
5959 R . converge ( R . zip ,
0 commit comments