Skip to content

Hotfix apple version regex - #53

Merged
MCMi460 merged 1 commit into
MCMi460:developmentfrom
HotaruBlaze:AppleVersionFix
Dec 3, 2022
Merged

MCMi460 merged 1 commit into
MCMi460:developmentfrom
HotaruBlaze:AppleVersionFix

Conversation

@HotaruBlaze

Copy link
Copy Markdown
Contributor

Apple seems to have changed the HTML for the version, where it has two spaces now before the version number. This may be a bug on their side however it does break our current version regex, so this adds a fallback to handle this extra space if the first method fails.
Below is the snippet showing the html

        <div class="l-column small-12 medium-3 large-4 small-valign-top whats-new__latest">
          <div class="l-row">
            <time data-test-we-datetime datetime="2022-12-01T00:00:00.000Z" aria-label="December 1, 2022" class="" >Dec 1, 2022</time>
            <p class="l-column small-6 medium-12 whats-new__latest__version">Version  2.4.0</p>
          </div>
        </div>

@MCMi460
MCMi460 merged commit 0861f23 into MCMi460:development Dec 3, 2022
@MCMi460

MCMi460 commented Dec 3, 2022

Copy link
Copy Markdown
Owner

Thank you so much!

@HotaruBlaze

HotaruBlaze commented Jan 2, 2023 •

Copy link
Copy Markdown
Contributor Author

Note for people looking at this PR, it was later changed to use the method provided by
PKBeam: Fix regex for detecting mobile app version number #55
Commit: d436a38

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