Skip to content

Commit

Permalink
Handle Urls with id parameter to generate document for this urls
Browse files Browse the repository at this point in the history
  • Loading branch information
amani64 committed Oct 25, 2016
1 parent 9261451 commit 8436cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ protected function getFileUrl($baseUrl, $identifier)
$url = str_replace('/', '-', $baseUrl);
$fileUrl = $url;
$pattern = '/([-{]+[a-z]*+[}])/';
if (preg_match($pattern, $url)) {
$fileUrl = preg_replace($pattern, '', $url);
if (preg_match($pattern, $url, $matches)) {
$fileUrl = str_replace('{', '', str_replace('}', '', $url));
}
}
return $fileUrl;
Expand Down

0 comments on commit 8436cd5

Please sign in to comment.