This commit is contained in:
Félix Saparelli 2022-02-11 00:52:35 +13:00
parent 797a7fc708
commit 56380154d3
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
1 changed files with 1 additions and 2 deletions

View File

@ -58,8 +58,7 @@ pub async fn globset(args: &ArgMatches<'static>) -> Result<Arc<WatchexecFilterer
let exts = args
.values_of_os("extensions")
.unwrap_or_default()
.map(|s| s.split(b','))
.flatten()
.flat_map(|s| s.split(b','))
.map(|e| os_strip_prefix(e, b'.'));
Ok(Arc::new(WatchexecFilterer {