From 1db5ce66c0e788f038662a44de39a9b3f439e111 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Thu, 26 Mar 2020 18:47:10 +0100 Subject: [PATCH] main: restrict epoch to only numbers --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index e3551ea..7e2746e 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 = /^(?.+) \((?[^:-]+)?:?(?[^:-]+)-?(?[^:-]+)?\) (?.+);/ + const regex = /^(?.+) \((?[0-9]+)?:?(?[^:-]+)-?(?[^:-]+)?\) (?.+);/ const match = changelog.match(regex) const { package, epoch, version, revision, distribution } = match.groups const os = await getOS(getDistribution(distribution))