summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Oloff <chris@uber5.com>2024-07-24 12:49:29 +0200
committerChris Oloff <chris@uber5.com>2024-07-24 12:49:31 +0200
commit0245f5f5d9d9c1891a7a24d27e1ecc3c21f65e55 (patch)
treed4ee1a9324bacd5e4c86fd93f24ac1b2181dcc33
parent0c323a569f2774431fcef2e5fe4b5c425ab572b2 (diff)
downloadfork-ledger-0245f5f5d9d9c1891a7a24d27e1ecc3c21f65e55.tar.gz
fork-ledger-0245f5f5d9d9c1891a7a24d27e1ecc3c21f65e55.tar.bz2
fork-ledger-0245f5f5d9d9c1891a7a24d27e1ecc3c21f65e55.zip
Fix acprep script
The script has a syntax error, caused by commit 815305b9: in escape_string() function the first argument to re.sub() was probably changed unintentionally. This reverts this one line. To test, I used acprep to build the binary locally, which succeeded. More testing might be needed, I don't have enough context to do that.
-rwxr-xr-xacprep2
1 files changed, 1 insertions, 1 deletions
diff --git a/acprep b/acprep
index 70b28e03..830e8c60 100755
--- a/acprep
+++ b/acprep
@@ -840,7 +840,7 @@ class PrepareBuild(CommandLineApp):
PrepareBuild.__dict__['setup_flavor_' + self.current_flavor](self)
def escape_string(self, data):
- return re.sub(r'(['\\\\])', '\\\\\\1', data)
+ return re.sub(r'(["\\\\])', '\\\\\\1', data)
def finalize_config(self):
self.setup_flavor()