Use StringUtil.parseInteger.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4724 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -176,11 +176,8 @@ public class MessageBundle
|
|||||||
if (getResourceString(key + ".n", false) != null) {
|
if (getResourceString(key + ".n", false) != null) {
|
||||||
// try converting the first arg to an int
|
// try converting the first arg to an int
|
||||||
try {
|
try {
|
||||||
var n :Number = parseInt(args[0]);
|
args[0] = StringUtil.parseInteger(args[0]);
|
||||||
if (!isNaN(n)) {
|
msg = getResourceString(key + getSuffix(args), false);
|
||||||
args[0] = n;
|
|
||||||
msg = getResourceString(key + getSuffix(args), false);
|
|
||||||
}
|
|
||||||
} catch (err :Error) {
|
} catch (err :Error) {
|
||||||
// fall through...
|
// fall through...
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user