gseitz/sbt-release — comment on commit e2a367676b8e55889f54f890431a3c31bc52adb6
File: src/main/scala/Release.scala line 182
By retronym:

You'd need `replaceFirst(lineSep.reverse).reverse` with a CRLF. Use `String#trim` if you're happy to also trim trailing whitespace.