Internal
Strip trailing slashes without using a regex, so the CodeQL polynomial- ReDoS detector has nothing to flag. Single linear pass from the right.
Input URL or path string.
The string with all trailing / characters removed.
/
Strip trailing slashes without using a regex, so the CodeQL polynomial- ReDoS detector has nothing to flag. Single linear pass from the right.