Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #737 from iamkroot/patch-1
Browse files Browse the repository at this point in the history
Update regex inside sanitizeVersion
  • Loading branch information
reis authored May 10, 2023
2 parents 19fbbe7 + ed7c5a5 commit 0554a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsEvents/getAppVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const sanitizeVersion = (ver) => {
while (ver.match(/\./g).length > 2) ver = ver.replace(/.([^.]*)$/, '$1');

return ver
.replace(/\.0(\d)/gi, '.$1') // because apparently x.0y.z (ex. 5.09.51) isn't a valid version
.replace(/\.0(\d+)/gi, '.$1') // because apparently x.0y.z (ex. 5.09.51) isn't a valid version
.replace(/^(\d+)\.(\d+)$/gi, '$1.$2.0'); // nor are versions without a patch (ex. 2.3)
};

Expand Down

2 comments on commit 0554a25

@iamkroot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shrihanDev would be great to have a new release with this commit. Will unblock people over at #648

@notOsteen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shrihanDev would be great to have a new release with this commit. Will unblock people over at #648

But its still not fixed, i built from main branch and instagram still cant be patched

Please sign in to comment.