Avoid putting an empty String at the end of the array in parseURLs().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4966 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2008-03-08 01:20:48 +00:00
parent b097e46637
commit a5506cdbad
+3 -2
View File
@@ -313,8 +313,9 @@ public class StringUtil
s = s.substring(index + url.length);
}
// just the string is left
array.push(s);
if (s != "" || array.length == 0) { // avoid putting an empty string on the end
array.push(s);
}
return array;
}