Update main.js

This commit is contained in:
Corey Butler 2022-10-12 12:23:41 -05:00 committed by GitHub
parent 9b97cee239
commit 26b90b182f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,16 +29,16 @@ async function run () {
switch (strategy) {
case 'docker':
version = (new Dockerfile(root)).version
version = version || (new Dockerfile(root)).version
break
case 'package':
// Extract using the package strategy (this is the default strategy)
version = (new Package(root)).version
version = version || (new Package(root)).version
break
case 'regex':
version = (new Regex(root, new RegExp(pattern, 'gim'))).version
version = version || (new Regex(root, new RegExp(pattern, 'gim'))).version
break
default: