Merge pull request #34 from trev/patch-1

Fix/support dash in relative links
This commit is contained in:
Will Rossiter 2013-11-04 20:52:36 -08:00
commit d3b748cd29

View File

@ -388,7 +388,7 @@ class DocumentationParser {
// Resolve relative paths
while(strpos($relativeUrl, '..') !== FALSE) {
$relativeUrl = preg_replace('/\w+\/\.\.\//', '', $relativeUrl);
$relativeUrl = preg_replace('/[-\w]+\/\.\.\//', '', $relativeUrl);
}
// Replace any double slashes (apart from protocol)
@ -428,4 +428,4 @@ class DocumentationParser {
}
}
}
}
}