(script: string)
| 410 | } |
| 411 | |
| 412 | function animeAddTargets(script: string): string[] { |
| 413 | const values: string[] = []; |
| 414 | const re = /\.add\s*\(\s*(["'`])([^"'`]+)\1/g; |
| 415 | let match: RegExpExecArray | null; |
| 416 | while ((match = re.exec(script))) values.push(match[2]!); |
| 417 | return values; |
| 418 | } |
| 419 | |
| 420 | function surfaceAnime(script: string): SurfacedAnimeAnimation[] { |
| 421 | if (!/\banime\s*(?:\.(?:timeline|createTimeline))?\s*\(/.test(script)) return []; |