Merge pull request #21 from 0xrsydn/fix/ksei-spaced-headers

fix: handle spaced KSEI PDF headers + bump to v0.2.3
This commit is contained in:
brutaljokerz 2026-08-01 02:24:36 +07:00 • committed by GitHub
commit 603c0e49c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 80 additions and 19 deletions

View file

@ -186,13 +186,7 @@ fn normalize_percentish(value: Option<f64>) -> Option<f64> {
}
fn sanitize_current_ratio(value: Option<f64>) -> Option<f64> {
value.and_then(|number| {
if !number.is_finite() || number < 0.01 {
None
} else {
Some(number)
}
})
value.filter(|number| number.is_finite() && *number >= 0.01)
}
fn round_price(value: f64) -> i64 {