trim leading and trailing forward-slashes ("/") and dot-slashes ("./"), at the beginning and end of a string, but keep trailing non-trivial ones intact.
this is a combination of trimStartDotSlashes and trimEndDotSlashes, so see their doc comments for more precise test cases.
trim leading and trailing forward-slashes ("/") and dot-slashes ("./"), at the beginning and end of a string, but keep trailing non-trivial ones intact. this is a combination of trimStartDotSlashes and trimEndDotSlashes, so see their doc comments for more precise test cases.
Example