summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwin/configure.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/win/configure.js b/win/configure.js
index 4450b97f9a1..0de09fb318c 100755
--- a/win/configure.js
+++ b/win/configure.js
@@ -134,6 +134,8 @@ function GetValue(str, key)
var end = str.indexOf("\n", pos);
if (str.charAt(pos) == "\"")
pos++;
+ if (str.charAt(end-1) == "\r")
+ end--;
if (str.charAt(end-1) == "\"")
end--;
return str.substring(pos, end);