capture special case early instead of failing
This commit is contained in:
parent
8759d82e87
commit
d2bd6e16ca
|
@ -375,6 +375,8 @@ def shapeshifter(fro,to,mode='left',keep_ones=False):
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
if not len(fro) and not len(to): return ()
|
||||||
|
|
||||||
beg = dict(left ='(^.*\\b)',
|
beg = dict(left ='(^.*\\b)',
|
||||||
right='(^.*?\\b)')
|
right='(^.*?\\b)')
|
||||||
sep = dict(left ='(.*\\b)',
|
sep = dict(left ='(.*\\b)',
|
||||||
|
|
Loading…
Reference in New Issue