Skip to main content

strip_root_prefix

Function strip_root_prefix 

Source
pub fn strip_root_prefix(value: &mut Value, prefix: &str)
Expand description

Recursively strip the root prefix from all string values in the JSON tree.

This converts absolute paths (e.g., /home/runner/work/repo/repo/src/utils.ts) to relative paths (src/utils.ts) for all output fields.