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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user