Normalize line endings

Tries to fix build failure on windows...
This commit is contained in:
Clément Fournier
2020-03-19 19:34:16 +01:00
parent 9a62a662c1
commit ea3085e560

View File

@ -169,7 +169,7 @@ abstract class BaseParsingHelper<Self : BaseParsingHelper<Self, T>, T : RootNode
private fun consume(input: InputStream) =
IOUtils.toString(input, StandardCharsets.UTF_8)
.replace("\r\n", "\n") // normalize line-endings
.replace(Regex("\\R"), "\n") // normalize line-endings
/**
* Gets the source from the source file in which the class was declared.