Revision: 1774
http://svn.sourceforge.net/vexi/?rev=1774&view=rev
Author: mkpg2
Date: 2007-03-30 11:47:37 -0700 (Fri, 30 Mar 2007)
Log Message:
-----------
Fix. toInt() was returning true for ""
Modified Paths:
--------------
core/trunk/org.ibex.js/src/org/ibex/js/JSU.jpp
Modified: core/trunk/org.ibex.js/src/org/ibex/js/JSU.jpp
===================================================================
--- core/trunk/org.ibex.js/src/org/ibex/js/JSU.jpp 2007-03-30 18:39:28 UTC
(rev 1773)
+++ core/trunk/org.ibex.js/src/org/ibex/js/JSU.jpp 2007-03-30 18:47:37 UTC
(rev 1774)
@@ -70,7 +70,7 @@
String s = ((JSString)o).s;
for(int i=0;i<s.length();i++)
if(s.charAt(i) < '0' || s.charAt(i) > '9') return false;
- return true;
+ return s.length()>0;
}
return false;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn