MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / split_server_mods

Function split_server_mods

mserver/MasterService/src/service.rs:311–324  ·  view source on GitHub ↗
(mod_list: &str)

Source from the content-addressed store, hash-verified

309 description: None,
310 homepage_url: None,
311 download_url: None,
312 });
313 }
314 }
315
316 Ok(resolved)
317 }
318}
319
320fn split_server_mods(mod_list: &str) -> Vec<String> {
321 let mut mod_ids = Vec::new();
322 for mod_id in mod_list
323 .split(|ch: char| ch == ',' || ch == ';' || ch == '|' || ch.is_whitespace())
324 .map(str::trim)
325 .filter(|mod_id| !mod_id.is_empty())
326 {
327 if !mod_ids.iter().any(|existing| existing == mod_id) {

Callers 2

mod_usage_serversMethod · 0.85
resolve_server_modsMethod · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected