Skip to content

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

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