Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 140 by
smartasa...@gmail.com: equals and equalsIgnoreCase are
both using regex improperly
http://code.google.com/p/as3-commons/issues/detail?id=140
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.015213-2.pom
./org/as3commons/as3commons-lang/0.2-SNAPSHOT/as3commons-lang-0.2-20100227.015213-2.pom.sha1
./org/as3commons/as3commons-lang/0.2-SNAPSHOT/as3commons-lang-0.2-20100227.015213-2.swc
./org/as3commons/as3commons-lang/0.2-SNAPSHOT/as3commons-lang-0.2-20100227.015213-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.sha1
./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.sha1
Please provide any additional information below.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings