Removes every trailing / from a string in a single linear scan. Used on operator- and request-supplied URLs instead of a //+$/ regex, whose backtracking is polynomial on inputs with many slashes.
/
//+$/
Removes every trailing
/from a string in a single linear scan. Used on operator- and request-supplied URLs instead of a//+$/regex, whose backtracking is polynomial on inputs with many slashes.