mirror of
https://github.com/mrclay/minify.git
synced 2025-08-11 08:34:19 +02:00
changes as per comments
https://github.com/mrclay/minify/pull/496#discussion_r50247608
This commit is contained in:
@@ -110,20 +110,20 @@ class Minify_Source_Factory {
|
||||
return $realpath;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
* turn windows-style slashes into unix-style,
|
||||
* remove trailing slash
|
||||
* and lowercase drive letter
|
||||
*
|
||||
* @param string $path absolute path
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNormalizedPath($path)
|
||||
{
|
||||
// turn windows-style slashes into unix-style,
|
||||
// remove trailing slash
|
||||
// and lowercase drive letter
|
||||
return lcfirst(rtrim(str_replace('\\', '/', $path), '/'));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param mixed $spec
|
||||
*
|
||||
|
Reference in New Issue
Block a user