added two utility functions

This commit is contained in:
huangjx
2021-10-28 14:58:36 +08:00
parent 41fa31ae7b
commit 285acaea45
2 changed files with 10 additions and 10036 deletions

View File

@@ -287,8 +287,13 @@ class Helper
return (bool) self::findBinaryPath('ffmpeg'); return (bool) self::findBinaryPath('ffmpeg');
} }
// filename without extension // filename without extension
public static function getBasicFilename($path){ public static function getBasicFilename($path)
{
return pathinfo($path, PATHINFO_FILENAME); return pathinfo($path, PATHINFO_FILENAME);
} }
public static function sanitize($string)
{
return filter_var($string, FILTER_SANITIZE_STRING);
}
} }

10031
package-lock.json generated

File diff suppressed because it is too large Load Diff