Changeset a6b3e90 in osmose-backend


Ignore:
Timestamp:
Jan 1, 2013 11:48:19 AM (7 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
253a4b9
Parents:
81ea215
Message:

Remove first lower in regex generator into plugin Name_PoorlyWrittenWayType

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/Name_PoorlyWrittenWayType.py

    r9b5d50d ra6b3e90  
    3131        (p1, p2) = p.split("|") 
    3232        r = u"^((" 
    33         for c in p1: 
     33        r += p1[0]  # keep first lever in uppercase 
     34        for c in p1[1:]: 
    3435            r += u"[%s%s]" % (c.lower(), c.upper()) 
    3536        r += u")(\.|" 
     
    3738            r += u"[%s%s]" % (c.lower(), c.upper()) 
    3839        r += u")?) .*$" 
    39         print r 
    4040        return re.compile(r) 
    4141 
Note: See TracChangeset for help on using the changeset viewer.