|
From: <acl...@us...> - 2006-10-12 22:47:14
|
Revision: 590
http://svn.sourceforge.net/asapframework/?rev=590&view=rev
Author: aclemens
Date: 2006-10-12 15:47:06 -0700 (Thu, 12 Oct 2006)
Log Message:
-----------
fixes replace to let it replace multiple instances of a string
Modified Paths:
--------------
trunk/asapframework/org/asapframework/util/StringUtils.as
Modified: trunk/asapframework/org/asapframework/util/StringUtils.as
===================================================================
--- trunk/asapframework/org/asapframework/util/StringUtils.as 2006-10-12 22:45:34 UTC (rev 589)
+++ trunk/asapframework/org/asapframework/util/StringUtils.as 2006-10-12 22:47:06 UTC (rev 590)
@@ -53,7 +53,7 @@
var index:Number = inSource.indexOf(inRemove);
while (index >= 0) {
inSource = inSource.substr(0, index) + inReplace + inSource.substr(index + inRemove.length);
- index = inSource.indexOf(inRemove, index+1);
+ index = inSource.indexOf(inRemove);
}
return inSource;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|