|
@@ -88,7 +88,31 @@ class Config
|
|
{
|
|
{
|
|
if (
|
|
if (
|
|
false === \preg_match_all(
|
|
false === \preg_match_all(
|
|
- '%//[^\r\n]*+|#[^\r\n]*+|/\*.*?\*/|\'.*?(?<!\\\\)\'|".*?(?<!\\\\)"|\s+|\[|\]|,|=>|\S+(?<![,\]\)])%s',
|
|
|
|
|
|
+ '%
|
|
|
|
+ //[^\r\n]*+
|
|
|
|
+ |
|
|
|
|
+ \#[^\r\n]*+
|
|
|
|
+ |
|
|
|
|
+ /\*.*?\*/
|
|
|
|
+ |
|
|
|
|
+ \'.*?(?<!\\\\)\'
|
|
|
|
+ |
|
|
|
|
+ ".*?(?<!\\\\)"
|
|
|
|
+ |
|
|
|
|
+ \s+
|
|
|
|
+ |
|
|
|
|
+ \[
|
|
|
|
+ |
|
|
|
|
+ \]
|
|
|
|
+ |
|
|
|
|
+ ,
|
|
|
|
+ |
|
|
|
|
+ =>
|
|
|
|
+ |
|
|
|
|
+ function\s*\(.+?\)\s*\{.*?\}(?=,)
|
|
|
|
+ |
|
|
|
|
+ \S+(?<![,\]\)])
|
|
|
|
+ %sx',
|
|
\substr($this->fileContents, $this->arrayStartPos),
|
|
\substr($this->fileContents, $this->arrayStartPos),
|
|
$matches
|
|
$matches
|
|
)
|
|
)
|