Skip to content

Commit

Permalink
Support directories in include directives
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Aug 29, 2016
1 parent 8c65131 commit ad1bf76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPDraft/In/ApibFileParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function get_apib($filename)
{
$file = file_get_contents($filename);
$matches = [];
preg_match_all('<!-- include\(([a-z_.]*?).apib\) -->', $file, $matches);
preg_match_all('<!-- include\(([a-z_.\/]*?).apib\) -->', $file, $matches);
foreach ($matches[1] as $value) {
$file = str_replace('<!-- include(' . $value . '.apib) -->', $this->get_apib($this->location . $value . '.apib'), $file);
}
Expand Down

0 comments on commit ad1bf76

Please sign in to comment.