1
0
Fork 0

Fix s2v_bool_bypass()

This commit is contained in:
Robbert van der Helm 2022-09-07 20:43:47 +02:00
parent c980fe2b4b
commit 4c9a2726f3

View file

@ -218,7 +218,7 @@ pub fn v2s_bool_bypass() -> Arc<dyn Fn(bool) -> String + Send + Sync> {
pub fn s2v_bool_bypass() -> Arc<dyn Fn(&str) -> Option<bool> + Send + Sync> {
Arc::new(|string| {
let string = string.trim();
if string.eq_ignore_ascii_case("bypass") {
if string.eq_ignore_ascii_case("bypassed") {
Some(true)
} else if string.eq_ignore_ascii_case("not bypassed") {
Some(false)