add also 1-character tokens to the token list because that could be also

searched for. A full-string search for a filename may fail if those
1-char tokens are omitted
pull/18/head
Michael Peter Christen 9 years ago
parent 7c82cd4415
commit 8e555d79a3

@ -995,7 +995,7 @@ public class MultiProtocolURL implements Serializable, Comparable<MultiProtocolU
// construct a String again
sb.setLength(0);
for (final String v: token) if (v.length() > 1) sb.append(v).append(' ');
for (final String v: token) if (v.length() >= 1) sb.append(v).append(' ');
return sb.length() == 0 ? "" : sb.substring(0, sb.length() - 1);
}

Loading…
Cancel
Save