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
6060 self ::$ config = config (AssetsConfig::class);
6161
6262 // 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 ;
6666 }
6767
6868 return self ::$ config ;
@@ -90,7 +90,7 @@ public static function useConfig(?AssetsConfig $config)
9090 public static function createFromPath (string $ path ): self
9191 {
9292 $ config = self ::config ();
93- $ path = ltrim ($ path , '/ ' );
93+ $ path = ltrim ($ path , '/ \\ ' );
9494 $ file = new File ($ config ->directory . $ path , true );
9595
9696 // 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