directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1578002 - /directory/apacheds/trunk/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/messages/HardwareAddress.java
Date Sun, 16 Mar 2014 09:05:34 GMT
Author: elecharny
Date: Sun Mar 16 09:05:34 2014
New Revision: 1578002

URL: http://svn.apache.org/r1578002
Log:
Partially fixed DIRSERVER-1929 modifying the regexp. A better solution would be to rewrite
the parser.

Modified:
    directory/apacheds/trunk/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/messages/HardwareAddress.java

Modified: directory/apacheds/trunk/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/messages/HardwareAddress.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/messages/HardwareAddress.java?rev=1578002&r1=1578001&r2=1578002&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/messages/HardwareAddress.java
(original)
+++ directory/apacheds/trunk/protocol-dhcp/src/main/java/org/apache/directory/server/dhcp/messages/HardwareAddress.java
Sun Mar 16 09:05:34 2014
@@ -195,7 +195,7 @@ public final class HardwareAddress
     }
 
     private static final Pattern PARSE_PATTERN = Pattern
-        .compile( "(\\d+)\\s+(?:(\\p{XDigit}{1,2}):)*(\\p{XDigit}{1,2})?" );
+        .compile( "(\\d+)/(?:(\\p{XDigit}{1,2}):)*(\\p{XDigit}{1,2})?" );
 
 
     /**



Mime
View raw message