mirror of
https://codeberg.org/icewind/nextcloud-config-parser.git
synced 2026-06-03 08:34:13 +02:00
fix parsing with new default comment
This commit is contained in:
parent
20d09d186d
commit
1da941262e
4 changed files with 65 additions and 2 deletions
|
|
@ -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('='),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue