Show
Ignore:
Timestamp:
03/05/09 17:54:54 (15 months ago)
Author:
athomas
Message:

Fix Base64 regex. Thanks Daniel. Fixes #102 (again).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cly/trunk/cly/builder.py

    r603 r604  
    13371337    >>> parser.parse('Y29vbA==abc').vars.get('foo') 
    13381338    """ 
    1339     pattern = r"""([A-Za-z0-9+/]{4})*(?:([A-Za-z0-9+/]{2}==)|([A-Za-z0-9+/]{3}=))?""" 
     1339    pattern = r"""(?:([A-Za-z0-9+/]{2}==)|([A-Za-z0-9+/]{3}=)){1}|([A-Za-z0-9+/]{4})+(?:([A-Za-z0-9+/]{2}==)|([A-Za-z0-9+/]{3}=))?""" 
    13401340 
    13411341    def parse(self, context, match):