]> code.delx.au - gnu-emacs/commitdiff
(ldap-search-internal): Tweak URL regexp.
authorChong Yidong <cyd@stupidchicken.com>
Tue, 12 Aug 2008 18:36:15 +0000 (18:36 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 12 Aug 2008 18:36:15 +0000 (18:36 +0000)
lisp/net/ldap.el

index d0bbe32c65ac3863e4c03d9c612880d3988a25f8..bff7cf7180c78e201eae06a696235fb170729957 100644 (file)
@@ -586,7 +586,9 @@ an alist of attribute/value pairs."
                                               (end-of-line)
                                               (point))))
          (forward-line 1)
-         (while (looking-at "^\\(\\w*\\)\\(;\\w*\\)?[=:\t ]+\\(<[\t ]*file://\\)\\(.*\\)$")
+          (while (looking-at "^\\([A-Za-z][-A-Za-z0-9]*\
+\\|[0-9]+\\(?:\\.[0-9]+\\)*\\)\\(;[-A-Za-z0-9]+\\)*[=:\t ]+\
+\\(<[\t ]*file://\\)\\(.*\\)$")
            (setq name (match-string 1)
                  value (match-string 4))
             ;; Need to handle file:///D:/... as generated by OpenLDAP