capture special case early instead of failing
This commit is contained in:
parent
b754617c76
commit
728e50f79e
|
@ -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)',
|
||||
right='(^.*?\\b)')
|
||||
sep = dict(left ='(.*\\b)',
|
||||
|
|
Loading…
Reference in New Issue