'use strict'; var _ = require('lodash/fp'); var formatBadge = require('./formatBadge'); var formatContributor = require('./formatContributor'); function injectContentBetween(lines, content, startIndex, endIndex) { return [].concat( lines.slice(0, startIndex), content, lines.slice(endIndex) ); } var injectBetweenTags = _.curry(function(tag, newContent, previousContent) { var lines = previousContent.split('\n'); var openingTagIndex = _.findIndex(_.startsWith('