Completely ignore stray $ in input
Previously, "a $ string $var" would not have gotten replaced at all.
This commit is contained in:
parent
24b536d7ed
commit
a2bb3a09d2
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ def _varFind(text, vars, depth=0):
|
|||
if text[var_end] != '}' or brace_level != 0:
|
||||
return None
|
||||
if var_end == part_start[0]:
|
||||
return None
|
||||
return {'replacement': '$', 'start': start, 'end': end}
|
||||
space = _varFindLimitSpace(vars, space, text[part_start[0]:var_end], depth)
|
||||
return {'replacement': space, 'start': start, 'end': end}
|
||||
|
||||
|
|
Loading…
Reference in a new issue