Commit f8522834 authored by Müller, Marco's avatar Müller, Marco
Browse files

Substring was not constructed correctly

parent dc998c45
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ public class LanguageMatcher {
			public int compare(URI o1, URI o2) {
				// Shortens from http://abc.de/.../1.0 to http://abc.de/...
				String shortenedO1 = o1.toString().substring(0, o1.toString().lastIndexOf("/"));
				String shortenedO2 = o2.toString().substring(0, o1.toString().lastIndexOf("/"));
				String shortenedO2 = o2.toString().substring(0, o2.toString().lastIndexOf("/"));
				
				if(shortenedO1.contains(shortenedO2))
					return 1;