Fix bug in JdtLsProejctCache table lookup
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user