Enhance redaction handling and update snapshot references

- Added support for redacting tagged values in the `RedactionMap` implementation, ensuring that nested tagged values are processed correctly.
- Updated multiple snapshot files to replace specific reference IDs with deterministic `id-N` values, improving consistency across tests and snapshots.
- Refactored internment logic in `internable.rs` to include variant references, ensuring proper redaction of property values in snapshots.
This commit is contained in:
Joe 2026-02-06 19:20:16 -06:00
parent 2978dee70d
commit 5442c02f67
11 changed files with 53 additions and 33 deletions

View file

@ -124,9 +124,7 @@ fn fetch_experience_name(place_id: u64) -> anyhow::Result<String> {
let client = Client::new();
// Place ID -> Universe ID
let universe_url = format!(
"https://apis.roblox.com/universes/v1/places/{place_id}/universe"
);
let universe_url = format!("https://apis.roblox.com/universes/v1/places/{place_id}/universe");
let universe: UniverseResponse = client
.get(&universe_url)
.send()
@ -203,18 +201,12 @@ mod tests {
#[test]
fn sanitize_brackets_and_parens() {
assert_eq!(
sanitize_name("My Game (UPDATE) [v2.0]"),
"my-game"
);
assert_eq!(sanitize_name("My Game (UPDATE) [v2.0]"), "my-game");
}
#[test]
fn sanitize_emojis() {
assert_eq!(
sanitize_name("Cool Game 🌊🏃⚡"),
"cool-game"
);
assert_eq!(sanitize_name("Cool Game 🌊🏃⚡"), "cool-game");
}
#[test]