Issue 140 in as3-commons: equals and equalsIgnoreCase are both using regex improperly

11 views
Skip to first unread message

as3-c...@googlecode.com

unread,
May 9, 2013, 3:29:17 PM5/9/13
to as3-commons...@googlegroups.com
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

as3-c...@googlecode.com

unread,
May 22, 2013, 7:47:37 AM5/22/13
to as3-commons...@googlegroups.com

Comment #1 on issue 140 by b3rt.van...@gmail.com: equals and
equalsIgnoreCase are both using regex improperly
http://code.google.com/p/as3-commons/issues/detail?id=140

Hi,

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

Cheers,

Bert
Reply all
Reply to author
Forward
0 new messages