From 93a3e3068989d2cb17553bb40ebf3e28550d4bb2 Mon Sep 17 00:00:00 2001 From: player-03 Date: Mon, 11 Sep 2023 10:38:46 -0400 Subject: [PATCH] Recognize \r\n line breaks. Leaving a trailing \r (on systems where that happens) makes it unable to find the folder. --- src/hxp/Haxelib.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hxp/Haxelib.hx b/src/hxp/Haxelib.hx index 78b3502..b16774b 100644 --- a/src/hxp/Haxelib.hx +++ b/src/hxp/Haxelib.hx @@ -137,7 +137,7 @@ class Haxelib Log.verbose = cache; - var lines = output.split("\n"); + var lines = ~/\r?\n/g.split(output); var result = ""; for (i in 1...lines.length)