diff options
| author | RblSb <msrblsb@gmail.com> | 2021-07-05 17:09:56 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2021-07-05 17:09:56 +0300 |
| commit | cf78d464be214eedcd7909001ece2aa0a216d136 (patch) | |
| tree | 5801ef0ca01589ed923c961a93b30278df9ea9d3 /src/PathTools.hx | |
| parent | ede45cea8706eb8540e466df9861c2af8ebf9c44 (diff) | |
vtt/srt subs support
Diffstat (limited to 'src/PathTools.hx')
| -rw-r--r-- | src/PathTools.hx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/PathTools.hx b/src/PathTools.hx new file mode 100644 index 0000000..69a0044 --- /dev/null +++ b/src/PathTools.hx @@ -0,0 +1,11 @@ +package; + +import haxe.io.Path; + +using StringTools; + +class PathTools { + public static function urlExtension(url:String) { + return Path.extension(~/[#?]/.split(url)[0]).trim().toLowerCase(); + } +} |
