Fix regression in RegEx statements

This commit is contained in:
Dylan Plecki 2015-06-30 12:16:48 -05:00
parent 6efb354cce
commit ceb29d76b2

View file

@ -15,9 +15,9 @@ public class LDAPDn {
public static LDAPDn fromString(String dnString) {
LDAPDn dn = new LDAPDn();
String[] rdns = dnString.split("(?<!\\\\\\\\),");
String[] rdns = dnString.split("(?<!\\\\),");
for (String entryStr : rdns) {
String[] rdn = entryStr.split("(?<!\\\\\\\\)=");
String[] rdn = entryStr.split("(?<!\\\\)=");
dn.addLast(rdn[0].trim(), rdn[1].trim());
}