mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Actual compile fix
This commit is contained in:
parent
2b5bac1f5e
commit
bd318ba562
1 changed files with 7 additions and 1 deletions
|
|
@ -1303,12 +1303,18 @@ fn get_subtitle_stats(path: &Path) -> Result<Vec<String>> {
|
|||
let mut fonts = vec![];
|
||||
|
||||
for capture in FONT_REGEX.captures_iter(&(fs::read_to_string(path)?)) {
|
||||
if let Some(font) = capture.name("font") || let Some(font) = capture.name("overrideFont") {
|
||||
if let Some(font) = capture.name("font") {
|
||||
let font_string = font.as_str().to_string();
|
||||
if !fonts.contains(&font_string) {
|
||||
fonts.push(font_string)
|
||||
}
|
||||
}
|
||||
if let Some(overrideFont) = capture.name("overrideFont") {
|
||||
let font_string = overrideFont.as_str().to_string();
|
||||
if !fonts.contains(&font_string) {
|
||||
fonts.push(font_string)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(fonts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue