(name: string)
| 45 | }; |
| 46 | |
| 47 | export const validateFunctionName = (name: string) => { |
| 48 | if (!ALLOWED_NAME_CHARACTERS.test(name)) { |
| 49 | throw new AgentRPCError( |
| 50 | `Function name must only contain letters and numbers. Got: ${name}`, |
| 51 | ); |
| 52 | } |
| 53 | }; |
| 54 | |
| 55 | export const validatePropertyName = (name: string) => { |
| 56 | const ALLOWED_PROPERTY_NAME_CHARACTERS = /^[a-zA-Z0-9_]+$/; |
nothing calls this directly
no outgoing calls
no test coverage detected