We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57fbe0e commit b87d15fCopy full SHA for b87d15f
gitsearchreplace/__init__.py
@@ -54,7 +54,9 @@ def calc_big_g(self, big_g_expr):
54
"""Transform the special interpolated \G{<python>}"""
55
parts = []
56
prefix = r'\G{'
57
- for part in big_g_expr.split(prefix):
+ oparts = big_g_expr.split(prefix)
58
+ parts = [oparts[0]]
59
+ for part in oparts[1:]:
60
if '}' in part:
61
x = part.find('}')
62
parts.append(prefix + part[:x+1])
0 commit comments