From debb2662afc0e6e233432c9036ebfb2617f58e48 Mon Sep 17 00:00:00 2001 From: Jussi Viiri Date: Wed, 22 Feb 2023 21:30:33 +0200 Subject: [PATCH] s2v_f32_panning() now strips C and R, not just L --- src/formatters.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatters.rs b/src/formatters.rs index 853f4404..c023f370 100644 --- a/src/formatters.rs +++ b/src/formatters.rs @@ -114,7 +114,7 @@ pub fn v2s_f32_panning() -> Arc String + Send + Sync> { pub fn s2v_f32_panning() -> Arc Option + Send + Sync> { Arc::new(|string| { let string = string.trim(); - let cleaned_string = string.trim_end_matches(&[' ', 'l', 'L']).parse().ok(); + let cleaned_string = string.trim_end_matches(&[' ', 'l', 'L', 'c', 'C', 'r', 'R']).parse().ok(); match string.chars().last()?.to_uppercase().next()? { 'L' => cleaned_string.map(|x: f32| x / -100.0), 'C' => Some(0.0),