mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 15:37:31 -06:00
Merge pull request #829 from rayhamel/stringify-listedVersions
Fix crash on startup when a library's `listedVersions` is a single number
This commit is contained in:
@@ -255,7 +255,7 @@ function ClientOptionsHandler(fileSources) {
|
||||
url: compilerPropsL(lang, libBaseName + '.url')
|
||||
};
|
||||
libs[lang][lib].versions = {};
|
||||
const listedVersions = compilerPropsL(lang, libBaseName + '.versions');
|
||||
const listedVersions = `${compilerPropsL(lang, libBaseName + '.versions')}`;
|
||||
if (listedVersions) {
|
||||
_.each(listedVersions.split(':'), version => {
|
||||
const libVersionName = libBaseName + `.versions.${version}`;
|
||||
|
||||
Reference in New Issue
Block a user