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

8 lines
209 B
JavaScript
Raw Normal View History

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