( value: string | null | undefined, paramName = 'ID', maxLength = 100 )
| 176 | * ``` |
| 177 | */ |
| 178 | export function validateAlphanumericId( |
| 179 | value: string | null | undefined, |
| 180 | paramName = 'ID', |
| 181 | maxLength = 100 |
| 182 | ): ValidationResult { |
| 183 | return validatePathSegment(value, { |
| 184 | paramName, |
| 185 | maxLength, |
| 186 | allowHyphens: true, |
| 187 | allowUnderscores: true, |
| 188 | allowDots: false, |
| 189 | }) |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Validates a numeric ID |
no test coverage detected