Fix bug in JdtLsProejctCache table lookup

This commit is contained in:
Kris De Volder
2018-03-27 12:56:49 -07:00
parent db5b0e2dde
commit 54a2bb9d47

View File

@@ -39,7 +39,10 @@ public class UriUtil {
public static boolean contains(String projectUri, String uri) {
if (projectUri.length() < uri.length()) {
return uri.startsWith(projectUri) && uri.charAt(projectUri.length()) == '/';
return uri.startsWith(projectUri) && (
projectUri.charAt(projectUri.length()-1)=='/' ||
uri.charAt(projectUri.length()) == '/'
);
} else if (projectUri.length() > uri.length()) {
return false;
} else {