MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / validate_bundle_id

Function validate_bundle_id

packages/server/src/camera.rs:406–416  ·  view source on GitHub ↗
(bundle_id: &str)

Source from the content-addressed store, hash-verified

404}
405
406fn validate_bundle_id(bundle_id: &str) -> Result<(), AppError> {
407 let valid = !bundle_id.is_empty()
408 && bundle_id
409 .chars()
410 .all(|c| c.is_ascii_alphanumeric() || c == '.' || c == '-' || c == '_');
411 if valid {
412 Ok(())
413 } else {
414 Err(AppError::bad_request("Invalid bundle identifier."))
415 }
416}
417
418fn enrich_status(udid: &str, status: &mut Value) {
419 let Some(object) = status.as_object_mut() else {

Callers 1

start_cameraFunction · 0.85

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected