Closed
Description
These functions and their _matches
variants operate on the start and end of the string, which are only the left and right (respectively) of the displayed text when rendered left-to-right like English. For (readers/users of) RTL languages, trim_right
is hinting that it will be trimming the prefix, but this is of course not the case (and similarly for _left
).
These are stable and there is precedent in other languages for left/right e.g. Python (there's also significant precedent for start/end), so we may not be able/want to do anything here, but it seems worth noting.