Fixed to allow a charset of "-" to work correctly.

Submitted by:	Steve Downey


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137074 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2002-09-29 07:15:12 +00:00
parent e42273b9f2
commit 5d1ca3e449
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@
* *
* @author <a href="bayard@generationjava.com">Henri Yandell</a> * @author <a href="bayard@generationjava.com">Henri Yandell</a>
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a> * @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @version $Id: CharSet.java,v 1.2 2002/09/28 10:34:54 scolebourne Exp $ * @version $Id: CharSet.java,v 1.3 2002/09/29 07:15:12 bayard Exp $
*/ */
public class CharSet { public class CharSet {
@ -116,7 +116,7 @@ protected void add(String str) {
CharRange range = null; CharRange range = null;
if("-".equals(str)) { if("-".equals(str)) {
range = new CharRange('_'); range = new CharRange('-');
set.add(range); set.add(range);
return; return;
} }