(ch: Option<char>)
| 262 | } |
| 263 | |
| 264 | fn is_reference_boundary(ch: Option<char>) -> bool { |
| 265 | ch.map(|ch| !ch.is_ascii_alphanumeric() && ch != '_' && ch != '-') |
| 266 | .unwrap_or(true) |
| 267 | } |
| 268 | |
| 269 | fn agent_name_matches(agent_name: &str, candidate: &str) -> bool { |
| 270 | let agent = agent_name.to_ascii_lowercase(); |