Skip to content

Commit

Permalink
Merge pull request #22 from MarcusSchwarz/issue-21
Browse files Browse the repository at this point in the history
fixes #21
  • Loading branch information
sorinsarca committed Jan 18, 2019
2 parents d79f9f4 + 21bcec0 commit ff5c65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Loaders/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function loadSchema(string $uri)
if (isset($this->schemas[$uri])) {
return $this->schemas[$uri];
}
if (strpos($uri, $this->prefix) !== 0) {
if ($this->prefixLength !== 0 && strpos($uri, $this->prefix) !== 0) {
return null;
}
$path = substr($uri, $this->prefixLength);
Expand Down

0 comments on commit ff5c65a

Please sign in to comment.