From 20bb08f2a23356c3e856d1d98920c7c0b5336c05 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 8 Aug 2018 18:10:25 +0200 Subject: [PATCH] Check lowered case metadata key --- src/app/files/compiler-metadata.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/files/compiler-metadata.js b/src/app/files/compiler-metadata.js index f731033b05..c9932d5900 100644 --- a/src/app/files/compiler-metadata.js +++ b/src/app/files/compiler-metadata.js @@ -73,7 +73,7 @@ class CompilerMetadata { if (error) return callback(error) try { var metadata = JSON.parse(content) - return callback(null, metadata[name + ':' + id] || metadata[name] || metadata[id]) + return callback(null, metadata[name + ':' + id] || metadata[name] || metadata[id] || metadata[name.toLowerCase() + ':' + id] || metadata[name.toLowerCase()]) } catch (e) { callback(e.message) }