You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: minify.rs
    path of file: ./repos/rspack/crates/rspack_plugin_swc_js_minimizer/src
    
    the code of the file until where you have to start completion: use std::{
  collections::HashMap,
  sync::{mpsc, Arc, Mutex},
};

use rspack_core::{
  rspack_sources::{RawSource, SourceExt},
  ModuleType,
};
use rspack_error::{error, BatchErrors, DiagnosticK
    
pub fn match_object(obj: &SwcJsMinimizerRspackPluginOptions, str: &str) -> Result<bool> {
  if let Some(condition) = &obj.test {
    if !condition.try_match(str)? {
      return Ok(false);
    }
  }
  if let Some(condition) = &obj.include {
    if !condition.try_match(str)? {
      return Ok(false);
    }
  }
  if let Some(condition) = &obj.exclude {
    if condition.try_match(str)? {
      return Ok(false);
    }
  }
  Ok(true)
}