MCPcopy Create free account
hub / github.com/Botloader/botloader / check_script_source

Function check_script_source

components/validation/src/web.rs:655–659  ·  view source on GitHub ↗
(ctx: &mut ValidationContext, field_name: &str, source: &str)

Source from the content-addressed store, hash-verified

653}
654
655pub fn check_script_source(ctx: &mut ValidationContext, field_name: &str, source: &str) {
656 if source.len() > 100_000 {
657 ctx.push_field_error(field_name, "source can be max 100KiB".to_string());
658 }
659}

Callers 2

validateMethod · 0.85
validateMethod · 0.85

Calls 1

push_field_errorMethod · 0.80

Tested by

no test coverage detected