index.js
function deindentBlocks(input) {
  var indent = detectIndent(input).indent
  return input.replace(regex.blocks, function (match, start, body, end) {
    return start + deindent(body, indent) + end
  })
}
function deindentBlocks(input) {
  var indent = detectIndent(input).indent
  return input.replace(regex.blocks, function (match, start, body, end) {
    return start + deindent(body, indent) + end
  })
}
function deindentBlocks ( input ) { var indent = detectIndent ( input ) . indent return input . replace ( regex . blocks , function ( match , start , body , end ) { return start + deindent ( body , indent ) + end } ) }
replace blocks as long as there is a match
replace blocks as long as there is a match