Check lowered case metadata key

pull/1/head
yann300 6 years ago
parent 674994e85f
commit 20bb08f2a2
  1. 2
      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)
}

Loading…
Cancel
Save