Fix regression in RegEx statements
This commit is contained in:
parent
6efb354cce
commit
ceb29d76b2
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue