From 218fe8f0237bea24c6b326995b2804331006001d Mon Sep 17 00:00:00 2001 From: Vrganj Date: Thu, 14 Jan 2021 20:32:06 +0100 Subject: [PATCH] Fix versions --- api/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/index.js b/api/src/index.js index fb6ac06..9210e16 100644 --- a/api/src/index.js +++ b/api/src/index.js @@ -8,7 +8,7 @@ const versions = execFileSync(__dirname + '/../../lxc/versions') .toString() .toLowerCase() .split('---') - .map(section => section.split('\n')) + .map(section => section.trim().split('\n')) .filter(section => section.length >= 2); function getVersion(language) {