diff --git a/main.js b/main.js index 7e2746e..ce79b50 100644 --- a/main.js +++ b/main.js @@ -32,7 +32,7 @@ async function main() { const file = path.join(sourceDirectory, "debian/changelog") const changelog = await firstline(file) - const regex = /^(?.+) \((?[0-9]+)?:?(?[^:-]+)-?(?[^:-]+)?\) (?.+);/ + const regex = /^(?.+) \(((?[0-9]+):)?(?[^:-]+)(-(?[^:-]+))?\) (?.+);/ const match = changelog.match(regex) const { package, epoch, version, revision, distribution } = match.groups const os = await getOS(getDistribution(distribution))