const greenAnsi = '\u001B[32m' ; const additionRegExp = /^ {2}\u001B\[32m\+ /gmu ; const redAnsi = '\u001B[31m' ; const omissionRegExp = /^ {2}\u001B\[31m- /gmu ; const yellowAnsi = '\u001B[33m' ; const changeRegExp = /^ {2}\u001B\[33m\* /gmu ; const propagateDiffSymbols = function ( prettyDiff ) : string { return prettyDiff . replace ( additionRegExp , `${ greenAnsi }+   ` ) . replace ( omissionRegExp , `${ redAnsi }-   ` ) . replace ( changeRegExp , `${ yellowAnsi }*   ` ) ; } ; export { propagateDiffSymbols } ;