mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-12 15:05:10 -05:00
CHANGES - Precompile regexes for video, playlist, VTT tags, durations. - Parse yt-dlp additional arguments using shellquote.Split for safety. - Validate user-provided yt-dlp args and surface quoting errors. - Reuse compiled regex in GetVideoOrPlaylistId extractions for stability. - Simplify removeVTTTags by leveraging precompiled VTT tag matcher. - Parse ISO-8601 durations with precompiled pattern for efficiency. - Replace inline VTT language regex with cached compiled matcher. - Remove unused findVTTFiles helper and redundant language checks. - Add go-shellquote dependency in go.mod and go.sum. - Reduce allocations by eliminating per-call regexp.MustCompile invocations.