Refactor lint config and retry logic
This commit is contained in:
+2
-2
@@ -147,8 +147,8 @@ function safeParseJson(jsonString) {
|
||||
if (dangerousKeys.some((key) => Object.keys(obj).includes(key))) {
|
||||
return true;
|
||||
}
|
||||
// Recursively check nested objects
|
||||
for (const key in obj) {
|
||||
// Recursively check nested objects (own properties only)
|
||||
for (const key of Object.keys(obj)) {
|
||||
if (checkDangerousPatterns(obj[key])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user