Skip to content

Commit

Permalink
fixed tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Apr 6, 2023
1 parent 0b61be5 commit 545e38e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ fun String?.isWindows(): Boolean {
* has occurred.
*/
fun Path.readTextOrNull(): String? = try {
readText(StandardCharsets.UTF_8)
readText(StandardCharsets.UTF_8).replace("\r\n", "\n").replace("\r", "\n")
} catch (e: IOException) {
logger.error(e) { "Not able to read file: $this" }
null
Expand Down

0 comments on commit 545e38e

Please sign in to comment.