Revision 503
Added by Aaron Marcuse-Kubitza almost 13 years ago
bin/ch_root | ||
---|---|---|
30 | 30 |
config = configs[i] |
31 | 31 |
label, sep, config['root'] = cols[i].partition(':') |
32 | 32 |
cols[i] = label+sep+config['out_root'] |
33 |
config['in_root_re'] = r'^'+re.escape(config['in_root'])+r'\b'
|
|
33 |
config['in_root_re'] = r'^'+re.escape(config['in_root'])+r'(?=\b|\W|$)'
|
|
34 | 34 |
writer.writerow(cols) |
35 | 35 |
for row in reader: |
36 | 36 |
for i in xrange(len(configs)): row[i] = configs[i]['root']+row[i] |
Also available in: Unified diff
ch_root: Deal with roots followed by something other than \b