Skip to content

Commit 26b20fa

Browse files
committed
Issue nuvoleweb#328: Prevent requiring absolute paths in base pattern
1 parent e0b930e commit 26b20fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin/PatternBase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function getLibraryDefinitions() {
7979

8080
// Attach pattern base path to assets.
8181
if (!empty($definition['base path'])) {
82-
$base_path = str_replace($this->root, '', $definition['base path']);
82+
$base_path = str_replace($this->root . DIRECTORY_SEPARATOR, '', $definition['base path']);
8383
$this->processLibraries($items, $base_path);
8484
}
8585

0 commit comments

Comments
 (0)