Skip to content

equals and equalsIgnoreCase are both using regex improperly #140

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
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 [email protected] on 9 May 2013 at 7:29

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions