diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/model/note.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/model/note.rs index 1c3065627..6ffb109a1 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/model/note.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/model/note.rs @@ -4,13 +4,13 @@ use ts_rs::TS; pub(crate) fn sanitize_prompt_text(value: &str) -> String { value .chars() - .filter_map(|character| { + .map(|character| { if character == '`' { - Some('\'') + '\'' } else if character.is_control() { - Some(' ') + ' ' } else { - Some(character) + character } }) .take(super::MAX_REWORK_NOTE_CHARS)