changeset 97435:92660418caae

(ldap-search-internal): Tweak URL regexp.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 12 Aug 2008 18:35:18 +0000
parents ee8eefbfeab3
children 4b240c36264c
files lisp/net/ldap.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/ldap.el	Tue Aug 12 18:35:06 2008 +0000
+++ b/lisp/net/ldap.el	Tue Aug 12 18:35:18 2008 +0000
@@ -584,7 +584,9 @@
 					       (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