import { logger } from '../logger' ; export function matchAt ( content , index , match ) { return content . substring ( index , index + match . length ) === match ; } export function replaceAt ( content , index , oldString , newString ) { logger . trace ( `Replacing ${ oldString } with ${ newString } at index ${ index }` ) ; return ( content . substr ( 0 , index ) + newString + content . substr ( index + oldString . length ) ) ; }