(
ctx: &mut ScriptContext<'_, API>,
name: &str,
spacing: f32,
)
| 4030 | } else if ch.is_whitespace() || ch == '-' || ch == '.' { |
| 4031 | out.push('_'); |
| 4032 | } |
| 4033 | } |
| 4034 | if out.chars().next().is_some_and(|ch| ch.is_ascii_digit()) { |
| 4035 | out.insert(0, '_'); |
| 4036 | } |
| 4037 | out |
| 4038 | } |
| 4039 | |
| 4040 | pub fn parse_project_name(text: &str) -> Option<String> { |
| 4041 | let mut in_project = false; |
| 4042 | for line in text.lines() { |
| 4043 | let trimmed = line.trim(); |
| 4044 | if trimmed == "[project]" { |
| 4045 | in_project = true; |
no test coverage detected