Greptile review fixes

This commit is contained in:
x032205
2025-06-04 21:41:21 -04:00
parent e7fe2ea51e
commit 1a14c71564
17 changed files with 20 additions and 19 deletions
@@ -41,10 +41,11 @@ const BaseSyncOptionsSchema = <T extends AnyZodObject | undefined = undefined>({
const allowedContentRegex = new RE2(`^([a-zA-Z0-9_\\-/]|${allowedPlaceholdersRegexPart})*$`);
const contentIsValid = allowedContentRegex.test(val);
// Check if {{secretKey}} appears exactly once
const secretKeyCount = (val.match(/\{\{secretKey\}\}/g) || []).length;
// Check if {{secretKey}} is present
const secretKeyRegex = new RE2(/\{\{secretKey\}\}/);
const secretKeyIsPresent = secretKeyRegex.test(val);
return contentIsValid && secretKeyCount === 1;
return contentIsValid && secretKeyIsPresent;
},
{
message: