(input: string, index: number)
| 16 | const CAMEL_REGEX = /[a-z][A-Z]/; |
| 17 | |
| 18 | export function isUpper(input: string, index: number): boolean { |
| 19 | const code = input.charCodeAt(index); |
| 20 | return code >= 65 /* A */ && code <= 90; /* Z */ |
| 21 | } |
| 22 | |
| 23 | export function isVoidElement(tag: string): boolean { |
| 24 | // Ordered by most common to least common. |