Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

equals and equalsIgnoreCase are both using regex improperly #140

Open
GoogleCodeExporter opened this issue Mar 21, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant