Issue Task Resolved

#111117Use str_ends_with() for remaining substr-based suffix checks

Wouter Wolters 10/17/26, 15:15 updated 10/19/26, 19:30

Description

Several suffix checks in the core still extract the end of a string
with substr() and compare the result with an expected suffix.

Use the native str_ends_with() function to express these checks
directly and avoid creating temporary substrings.

Reviews 1

History 13

  1. Gerrit Code Review pushed patch set 1 for main to change 96791 status New Under Review 10/17/26, 15:18

  2. Gerrit Code Review pushed patch set 2 for main to change 96791 10/17/26, 15:36

  3. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % 10/19/26, 19:30

    Applied in changeset commit:8f4d88fb74996aa1eefe466f89ed3d82a16a46fd.