Innovenergy_trunk/frontend/node_modules/getos/logic/amazon.js

8 lines
217 B
JavaScript
Raw Normal View History

var releaseRegex = /release (.*)/
module.exports = function amazonCustomLogic (os, file, cb) {
var release = file.match(releaseRegex)
if (release && release.length === 2) os.release = release[1]
cb(null, os)
}