diff --git a/scripts/update-milestone.js b/scripts/update-milestone.js
index <HASH>..<HASH> 100644
--- a/scripts/update-milestone.js
+++ b/scripts/update-milestone.js
@@ -25,12 +25,13 @@ req.get(options, (err, resp) => {
   if (!openMilestones.length) { return }
 
   const versions = _.map(openMilestones, (m) => m.title)
-  const newestVersion = semver.maxSatisfying(versions, "*").replace(/$v/, "")
+  const newestVersion = semver.maxSatisfying(versions, "*")
   const newestMilestone = _.find(body, (m) => m.title === newestVersion)
   const totalIssues = newestMilestone.open_issues + newestMilestone.closed_issues
   const percentage = newestMilestone.closed_issues / totalIssues * 100
+  const version = newestVersion.replace(/$v/, "")
 
-  const badge = `[![v${newestVersion} progress](http://progressed.io/bar/${percentage}?title=v${newestVersion})](https://github.com/kristerkari/stylelint-scss/milestones/${newestVersion})`
+  const badge = `[![v${version} progress](http://progressed.io/bar/${percentage}?title=v${version})](https://github.com/kristerkari/stylelint-scss/milestones/${version})`
 
   replace({
     regex: badgeRegex,
Strip leading "v" after a milestone is found