File tree Expand file tree Collapse file tree 4 files changed +4
-134
lines changed Expand file tree Collapse file tree 4 files changed +4
-134
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ public static function config(): AssetsConfig
60
60
self ::$ config = config (AssetsConfig::class);
61
61
62
62
// Standardize formats
63
- self ::$ config ->uri = rtrim (self ::$ config ->uri , '/ ' ) . ' / ' ;
64
- self ::$ config ->directory = rtrim (self ::$ config ->directory , '/ ' ) . ' / ' ;
65
- self ::$ config ->vendor = rtrim (self ::$ config ->vendor , '/ ' ) . ' / ' ;
63
+ self ::$ config ->uri = rtrim (self ::$ config ->uri , '/ \\ ' ) . DIRECTORY_SEPARATOR ;
64
+ self ::$ config ->directory = rtrim (self ::$ config ->directory , '/ \\ ' ) . DIRECTORY_SEPARATOR ;
65
+ self ::$ config ->vendor = rtrim (self ::$ config ->vendor , '/ \\ ' ) . DIRECTORY_SEPARATOR ;
66
66
}
67
67
68
68
return self ::$ config ;
@@ -90,7 +90,7 @@ public static function useConfig(?AssetsConfig $config)
90
90
public static function createFromPath (string $ path ): self
91
91
{
92
92
$ config = self ::config ();
93
- $ path = ltrim ($ path , '/ ' );
93
+ $ path = ltrim ($ path , '/ \\ ' );
94
94
$ file = new File ($ config ->directory . $ path , true );
95
95
96
96
// Build the URI
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments