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) {