mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
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:
commit
603c0e49c1
8 changed files with 80 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue