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
1 change: 1 addition & 0 deletions crates/bran-document/src/conformance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub fn registered() -> Vec<&'static dyn Adapter> {
vec![
&crate::docx::Docx,
&crate::xlsx::Xlsx,
&crate::pptx::Pptx,
&crate::pdf::PdfAdapter,
]
}
Expand Down
1 change: 1 addition & 0 deletions crates/bran-document/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub mod opc;
pub mod pdf;
mod pdf_syntax;
mod pdf_text;
pub mod pptx;
pub mod xlsx;
pub mod xml;
pub mod zip;
Expand Down
2 changes: 1 addition & 1 deletion crates/bran-document/src/opc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ pub fn open(bytes: &[u8], limits: &Limits, cancel: &Cancel) -> Result<Package, R
Ok(package)
}

fn dlp_scan(bytes: &[u8], findings: &mut BTreeSet<&'static str>) {
pub(crate) fn dlp_scan(bytes: &[u8], findings: &mut BTreeSet<&'static str>) {
match validate_emitted_string(&String::from_utf8_lossy(bytes)) {
Err(ExportError::DlpViolation(_)) => findings.insert("dlp-findings"),
Err(_) => findings.insert("public-boundary-violation"),
Expand Down
Loading
Loading