Skip to content
Snippets Groups Projects

Fix issue where 0'd commit sha isn't matching properly

Merged Martin Lowe requested to merge malowe-main-patch-27912 into main
  • Fix issue where 0'd commit sha isn't matching properly

In local testing after reports by Matt + Denis, it was found the 0 matching regex wasn't behaving properly. This seems to be caused by ruby auto-casting a 0 only string to a number due to soft typing, which wasn't a problem observed before. The fix forces the var into a string before regex comparisons.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading