Completely ignore stray $ in input

Previously, "a $ string $var" would not have gotten replaced at all.
pull/1648/head
Daniel Hokka Zakrisson 12 years ago
parent 24b536d7ed
commit a2bb3a09d2

@ -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…
Cancel
Save