Added comment

This commit is contained in:
Luca Frosini 2021-01-15 10:50:29 +01:00
parent 81c7b28c62
commit 3735db9ded
1 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,12 @@ public class SanitizedURL {
if(testPostFix.matches(CHARACTERS_TO_REMOVE)) {
postfix = urlString.substring(urlString.length()-1) + postfix;
urlString = urlString.substring(0, urlString.length()-1);
/*
* The urlString could terminate with more than one character to be escaped
* So we need to further analyse the sanitised URL
* e.g. 'https://data.d4science.net/tfXA),' terminates with '),'
*/
urlString = stripPostfix(urlString);
}
return urlString;