adguard-flm 2.6.1

This crate represents a library for managing AdGuard filter lists
Documentation
1
2
3
4
5
6
7
8
/// Special `str.chars()` case, which respects trailing line
pub(crate) fn lines_with_terminator(value: &str) -> impl Iterator<Item = &str> {
    value.lines().chain(if value.ends_with('\n') {
        Some("")
    } else {
        None
    })
}