Replaces replace with substring in leveldbds query

This commit is contained in:
Ben 2024-05-23 09:41:36 +02:00
parent b7794b26ab
commit 0654a76192
No known key found for this signature in database
GPG Key ID: 541B9D8C9F1426A1

View File

@ -80,7 +80,7 @@ proc getQueryString(query: Query): string =
let toTrim = ["/*", "\\*"]
for trim in toTrim:
if result.endswith(trim):
result = result.replace(trim, "")
result = result[0 ..< ^(trim.len)]
method query*(
self: LevelDbDatastore,