Project

General

Profile

« Previous | Next » 

Revision 5552

sql_gen.py: concat(): Allow multiple "column" suffixes with "." when matching the existing suffix

View differences:

lib/sql_gen.py
25 25
    '''Preserves version so that it won't be truncated off the string, leading
26 26
    to collisions.'''
27 27
    # Preserve version
28
    match = re.match(r'^(.*?)((?:(?:#\d+)?\)?)*(?:\.\w+)?(?:::[\w ]+)*)$', str_)
28
    match = re.match(r'^(.*?)((?:(?:#\d+)?\)?)*(?:\.\w+)+(?:::[\w ]+)*)$', str_)
29 29
    if match:
30 30
        str_, old_suffix = match.groups()
31 31
        suffix = old_suffix+suffix

Also available in: Unified diff