diff --git a/code/DocumentationParser.php b/code/DocumentationParser.php index 61bbe54..25f98df 100755 --- a/code/DocumentationParser.php +++ b/code/DocumentationParser.php @@ -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 { } } } -} \ No newline at end of file +}