From: rmurray <> Date: Wed, 16 Apr 2003 22:49:34 +0000 (+0000) Subject: make space after ssh keys optional X-Git-Tag: debian_userdir-ldap_0-3-7~67 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=ddf6cc910aa6afbde7bebbd25092407066677122 make space after ssh keys optional fix regexp for ud-xearth and python2.2 --- diff --git a/userdir_ldap.py b/userdir_ldap.py index 80edc28..215d8e8 100644 --- a/userdir_ldap.py +++ b/userdir_ldap.py @@ -32,7 +32,7 @@ LastNamesPre = {"van": None, "le": None, "de": None, "di": None}; # SSH Key splitting. The result is: # (options,size,modulous,exponent,comment) SSHAuthSplit = re.compile('^(.* )?(\d+) (\d+) (\d+) ?(.+)$'); -SSH2AuthSplit = re.compile('^(.* )?ssh-(dss|rsa) ([a-zA-Z0-9=/+]+) (.+)$'); +SSH2AuthSplit = re.compile('^(.* )?ssh-(dss|rsa) ([a-zA-Z0-9=/+]+) ?(.+)$'); #'^([^\d](?:[^ "]+(?:".*")?)*)? ?(\d+) (\d+) (\d+) (.+)$'); AddressSplit = re.compile("(.*).*<([^@]*)@([^>]*)>"); @@ -186,7 +186,7 @@ def FlushOutstanding(l,Outstanding,Fast=0): # Convert a lat/long attribute into Decimal degrees def DecDegree(Posn,Anon=0): - Parts = re.match('[+-]?(\d*)\\.?(\d*)?',Posn).groups(); + Parts = re.match('[-+]?(\d*)\\.?(\d*)',Posn).groups(); Val = string.atof(Posn); if (abs(Val) >= 1806060.0):