Skip to main content

lnmp_sanitize/
lib.rs

1//! Lenient sanitization layer for LNMP text inputs.
2//!
3//! The sanitizer performs lightweight whitespace normalization, quote/escape repair,
4//! and optional boolean/number canonicalization before handing text to the strict
5//! LNMP parser.
6
7mod mode;
8mod sanitize;
9#[cfg(test)]
10mod tests;
11
12pub use crate::mode::SanitizationLevel;
13pub use crate::sanitize::{sanitize_lnmp_text, SanitizationConfig};