Skip to content

Conversation

@timmywil
Copy link
Member

@timmywil timmywil commented Nov 20, 2024

Summary

@mgol noticed this in #5583 (comment)

  • The regex wasn't accounting for the added .2 in beta.2.
  • Incremented the version number in compareSize.js so that all existing caches automatically reset.

Checklist

@timmywil timmywil requested a review from mgol November 20, 2024 01:30
// The short SHA so commits can be compared against each other
// and .dirty to compare with the existing branch during development.
const sha = /jQuery v\d+.\d+.\d+(?:-\w+)?(?:\+slim\.|\+)?([^ \.]+(?:\.dirty)?)?/.exec( contents )[ 1 ];
const sha = /jQuery v\d+.\d+.\d+(?:-[\w\.]+)?(?:\+slim\.|\+)?(\w+(?:\.dirty)?)?/.exec( contents )[ 1 ];
Copy link
Member Author

Choose a reason for hiding this comment

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

On the second change, I realized the matching didn't have to be so broad. SHAs are just letters and numbers.

Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

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

I tested this locally, looks good!

@mgol mgol changed the title Build: fix pre release matching in compare size regex Build: Fix pre release matching in compare size regex Nov 21, 2024
@mgol mgol merged commit 041f6e3 into jquery:main Nov 21, 2024
17 checks passed
@mgol mgol added this to the 3.7.2 milestone Nov 21, 2024
@mgol mgol added the Build label Nov 21, 2024
mgol pushed a commit to mgol/jquery that referenced this pull request Nov 21, 2024
@mgol
Copy link
Member

mgol commented Nov 21, 2024

Landed on main in 041f6e3 and on 3.x-stable in bcfdf9a.

I let myself land it as I have a different patch to compareSize and I wanted to avoid conflicts.

@timmywil timmywil deleted the compare_size branch December 18, 2024 03:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

2 participants