VasylKorzhyk / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

replace function returns empty string if replace text not found #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
com/adobe/utils/StringUtil.as

Is should return the original string.

Original issue reported on code.google.com by mikechambers on 2 Jul 2008 at 9:56

GoogleCodeExporter commented 8 years ago
actually, on further review, this is wrong.

If the search string is not found, a new string, with the same contents as the 
passed
in string is returned.

There is a note in the code, asking whether this new string should be returned, 
or
the string passed in.

I think i will keep it as is, so in all cases a new string is returned.

Original comment by mikechambers on 2 Jul 2008 at 9:58