Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
updated regex to capture more than one concurrent digit
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatdet committed Mar 14, 2022
1 parent e075e0f commit 3c4ab16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function getVersion(pathToFile){
async function updateVersion(version){
const labels = await getLabels();

const versionNumbers = version.match(/\d/g);
const versionNumbers = version.match(/\d*/g);
for(let i = 0; i < versionNumbers.length; i++){
versionNumbers[i] = Number.parseInt(versionNumbers[i]);
}
Expand Down

0 comments on commit 3c4ab16

Please sign in to comment.