True when a grep `path` targets the chat-scoped uploads namespace.
(path: string | undefined)
| 36 | |
| 37 | /** True when a grep `path` targets the chat-scoped uploads namespace. */ |
| 38 | function isChatUploadGrepPath(path: string | undefined): path is string { |
| 39 | if (!path) return false |
| 40 | return /^uploads(\/|$)/.test(path.replace(/^\/+/, '')) |
| 41 | } |
| 42 | |
| 43 | function serializedResultSize(value: unknown): number { |
| 44 | try { |
no test coverage detected