@@ 132-134 (lines=3) @@ | ||
129 | $lastOptionalDir = $i > 8 ? $i - 5 : 3; |
|
130 | $this->targetDirMaxMatches = $i - $lastOptionalDir; |
|
131 | ||
132 | while (--$i >= $lastOptionalDir) { |
|
133 | $regex = sprintf('(%s%s)?', preg_quote(DIRECTORY_SEPARATOR.$dir[$i], '#'), $regex); |
|
134 | } |
|
135 | ||
136 | do { |
|
137 | $regex = preg_quote(DIRECTORY_SEPARATOR.$dir[$i], '#').$regex; |
|
@@ 136-138 (lines=3) @@ | ||
133 | $regex = sprintf('(%s%s)?', preg_quote(DIRECTORY_SEPARATOR.$dir[$i], '#'), $regex); |
|
134 | } |
|
135 | ||
136 | do { |
|
137 | $regex = preg_quote(DIRECTORY_SEPARATOR.$dir[$i], '#').$regex; |
|
138 | } while (0 < --$i); |
|
139 | ||
140 | $this->targetDirRegex = '#'.preg_quote($dir[0], '#').$regex.'#'; |
|
141 | } |