diff --git a/dpx/src/dpx_tt_gsub.rs b/dpx/src/dpx_tt_gsub.rs index e3c5160f8..27305442e 100644 --- a/dpx/src/dpx_tt_gsub.rs +++ b/dpx/src/dpx_tt_gsub.rs @@ -1304,7 +1304,7 @@ fn scan_otl_tag(otl_tags: &[u8]) -> Result<(Vec, Vec, Vec), ()> { language = vec![b'*']; } /* Finally feature */ - let feature = if p.len() < 5 { + let feature = if p.len() >= 4 { Vec::from(p) } else { warn!("No valid OTL feature tag specified.");