(lowerKey)
| 10 | ] |
| 11 | |
| 12 | export function isPromptOrSelectionLikeKey(lowerKey) { |
| 13 | lowerKey = lowerKey.toLowerCase() |
| 14 | const normalizedKey = lowerKey.replace(/[^a-z0-9]/g, '') |
| 15 | return ( |
| 16 | normalizedKey.endsWith('question') || |
| 17 | normalizedKey.endsWith('prompt') || |
| 18 | normalizedKey.endsWith('query') || |
| 19 | normalizedKey === 'selection' || |
| 20 | normalizedKey === 'selectiontext' |
| 21 | ) |
| 22 | } |
| 23 | |
| 24 | export function redactSensitiveFields(obj, recursionDepth = 0, maxDepth = 5, seen = new WeakSet()) { |
| 25 | if (recursionDepth > maxDepth) { |
no outgoing calls
no test coverage detected