Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 33 additions & 6 deletions ext/parsekit/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext/parsekit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ image = "0.25" # Image processing library (match rusty-tesseract's version)
calamine = "0.36" # Excel parsing
docx-rs = "0.4" # Word document parsing
quick-xml = "0.42" # XML parsing
zip = "8.2" # ZIP archive handling for PPTX
zip = "9.0" # ZIP archive handling for PPTX
serde_json = "1.0" # JSON parsing
regex = "1.10" # Text parsing
encoding_rs = "0.8" # Encoding detection
Expand Down
10 changes: 8 additions & 2 deletions ext/parsekit/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ impl Parser {
Err(_) => continue,
};

let name = file.name();
let name = match file.name() {
Ok(n) => n.into_owned(),
Err(_) => continue,
};
// Match slide XML files (e.g., ppt/slides/slide1.xml)
if name.starts_with("ppt/slides/slide") && name.ends_with(".xml") && !name.contains("_rels") {
// Extract slide number from filename
Expand Down Expand Up @@ -353,7 +356,10 @@ impl Parser {
Err(_) => continue,
};

let name = file.name();
let name = match file.name() {
Ok(n) => n.into_owned(),
Err(_) => continue,
};
// Match notes slide XML files
if name.starts_with("ppt/notesSlides/notesSlide") && name.ends_with(".xml") && !name.contains("_rels") {
let mut contents = String::new();
Expand Down
Loading