(key: string)
| 307 | const EVENT_HANDLER_RE = /^on[A-Z]/ |
| 308 | |
| 309 | function getEventName(key: string) { |
| 310 | if (EVENT_HANDLER_RE.test(key)) { |
| 311 | return key[2].toLowerCase() + key.slice(3) |
| 312 | } |
| 313 | |
| 314 | if (key.startsWith('@')) { |
| 315 | return key.slice(1) |
| 316 | } |
| 317 | |
| 318 | if (key.startsWith('v-on:')) { |
| 319 | return key.slice(5) |
| 320 | } |
| 321 | |
| 322 | return null |
| 323 | } |
| 324 | |
| 325 | function stringifyVueComponent( |
| 326 | component: DevComponent, |
no outgoing calls
no test coverage detected