fix parsing with new default comment

This commit is contained in:
Robin Appelman 2026-05-06 17:14:20 +02:00
commit 1da941262e
4 changed files with 65 additions and 2 deletions

View file

@ -53,7 +53,7 @@ fn parse_php(path: impl AsRef<Path>) -> Result<Value> {
}
}
let php = match content.find("$CONFIG") {
let php = match content.rfind("$CONFIG") {
Some(pos) => content[pos + "$CONFIG".len()..]
.trim()
.trim_start_matches('='),