(key: string)
| 65 | } |
| 66 | |
| 67 | function normalizeParamKey(key: string) { |
| 68 | const normalized = key.replace(/[^a-zA-Z0-9_]/g, '_').replace(/^_+/, '') |
| 69 | const prefixed = /^[a-zA-Z]/.test(normalized) |
| 70 | ? normalized |
| 71 | : `p_${normalized || 'value'}` |
| 72 | |
| 73 | return prefixed.slice(0, 40) |
| 74 | } |
| 75 | |
| 76 | function normalizeParamValue(value: unknown): number | string | undefined { |
| 77 | if (value === undefined || value === null) { |
no test coverage detected