christophe-hall / as3-commons

Automatically exported from code.google.com/p/as3-commons
0 stars 0 forks source link

equals and equalsIgnoreCase are both using regex improperly #140

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. StringUtils.equals turns arg1 into a regex and tests for inclusion in arg2.  
This will return true if arg1 is a prefix of arg2.
Also will fail if arg1 contains periods or other regular expression 
meta-characters.

What is the expected output? What do you see instead?

StringUtils.equals("HI", "HI MOM") returns true.
should return false.

What version of the product are you using? On what operating system?

./org/as3commons/as3commons-lang
./org/as3commons/as3commons-lang/0.2-SNAPSHOT/as3commons-lang-0.2-20100227.01521
3-2.pom
./org/as3commons/as3commons-lang/0.2-SNAPSHOT/as3commons-lang-0.2-20100227.01521
3-2.pom.sha1
./org/as3commons/as3commons-lang/0.2-SNAPSHOT/as3commons-lang-0.2-20100227.01521
3-2.swc
./org/as3commons/as3commons-lang/0.2-SNAPSHOT/as3commons-lang-0.2-20100227.01521
3-2.swc.sha1
./org/as3commons/as3commons-lang/0.2-SNAPSHOT/as3commons-lang-0.2-SNAPSHOT.pom
./org/as3commons/as3commons-lang/0.2-SNAPSHOT/as3commons-lang-0.2-SNAPSHOT.pom.s
ha1
./org/as3commons/as3commons-lang/0.2-SNAPSHOT/as3commons-lang-0.2-SNAPSHOT.swc
./org/as3commons/as3commons-lang/0.2-SNAPSHOT/as3commons-lang-0.2-SNAPSHOT.swc.s
ha1

Please provide any additional information below.

Original issue reported on code.google.com by smartasa...@gmail.com on 9 May 2013 at 7:29

GoogleCodeExporter commented 9 years ago
Hi,

This issue was fixed in version 0.2.1 (24.03.2010)
Is upgrading to a newer version an option?

Cheers,

Bert

Original comment by b3rt.van...@gmail.com on 22 May 2013 at 11:47