Bug in SimpleResourceLocator?

Hello!



I was taking a look to the resource management of JME while i found this code snippet in public URL locateResource(String resourceName):



// Trim off any prepended local dir.
while (resourceName.startsWith("./") && resourceName.length() > 2) {
    resourceName = resourceName.substring(2);
}
while (resourceName.startsWith(".\") && resourceName.length() > 2) {
    resourceName = resourceName.substring(2);
}



This doesn't makes sense to me as it would cycle over the resourceName only trimming any ./ or . at the beginning and not all the local directories as intended to be.

Maybe I'm wrong, so I'm just asking for a confirm.
Regards,
Eduard