prompt: close whitespace-control include validation gap

This commit is contained in:
2026-08-14 13:58:11 +09:00
parent a6f92104fa
commit a1f6a6bad5
7 changed files with 46 additions and 25 deletions
+2
View File
@@ -1372,6 +1372,8 @@ fn parse_static_template_includes(template: &str, source: &str) -> Result<Vec<St
break;
};
let body = after_open[..close].trim();
let body = body.strip_prefix('-').unwrap_or(body).trim_start();
let body = body.strip_suffix('-').unwrap_or(body).trim_end();
if body.starts_with("include") {
let argument = body["include".len()..].trim();
let bytes = argument.as_bytes();