From dfd9334130d2f8480ba5eefb19590d8db1a40451 Mon Sep 17 00:00:00 2001 From: ExE Boss Date: Thu, 6 Apr 2017 19:35:47 +0200 Subject: [PATCH] Fix windows build Fixes the \r symbol remaining at the end of `entry` in the file `utils/update-flash-refs.js:194`, which resulted in the build not working on Windows. Signed-off-by: ExE Boss --- AUTHORS | 1 + utils/update-flash-refs.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 7b4ab142d3..26869e7828 100644 --- a/AUTHORS +++ b/AUTHORS @@ -15,3 +15,4 @@ Jeff Dyer Till Schneidereit Jet Villegas Claus Wahlers +ExE Boss diff --git a/utils/update-flash-refs.js b/utils/update-flash-refs.js index 0d794d10b5..7b2b8e0e4a 100644 --- a/utils/update-flash-refs.js +++ b/utils/update-flash-refs.js @@ -191,7 +191,7 @@ function packageRefs(includes, output, license) { '\n'; }); var content = '', included = {}; - refs.split('\n').forEach(function (entry) { + refs.split(/\r\n|\r|\n/).forEach(function (entry) { if (entry.trim() === '') { return; }