Ini: Fix that directives could not contain a slash
We introtuced preg_quote not quoting the delimiter.
This commit is contained in:
parent
bdc0321f62
commit
15506941a6
|
@ -493,7 +493,7 @@ class IniEditor
|
|||
private function isPropertyDeclaration($lineContent, array $key)
|
||||
{
|
||||
return preg_match(
|
||||
'/^\s*' . preg_quote($this->formatKey($key)) . '\s*=\s*/',
|
||||
'/^\s*' . preg_quote($this->formatKey($key), '/') . '\s*=\s*/',
|
||||
$lineContent
|
||||
) === 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue