Skip to content

Fix regex for detecting mobile app version number - #55

Closed
PKBeam wants to merge 1 commit into
MCMi460:mainfrom
PKBeam:fix/fix-regex-version-number-detection
Closed

PKBeam wants to merge 1 commit into
MCMi460:mainfrom
PKBeam:fix/fix-regex-version-number-detection

Conversation

@PKBeam

@PKBeam PKBeam commented Dec 10, 2022 •

Copy link
Copy Markdown
Contributor

Possible for for issue #54.

Adding * to Version\s will match multiple whitespace characters e.g.

Version  2.4.0

Adding + at the end forces the regex to match at least one version number string, which excludes cases like

Version foobar

@HotaruBlaze

HotaruBlaze commented Dec 10, 2022 •

Copy link
Copy Markdown
Contributor

This has already been fixed here #53, It's just not been merged to main yet. Try the development branch.

Although I think your regex is cleaner, I don't understand enough about regex's to brute force test it.

@PKBeam

PKBeam commented Dec 10, 2022

Copy link
Copy Markdown
Contributor Author

all good then - I’ll close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants