aboutsummaryrefslogtreecommitdiffstats
path: root/src/PathTools.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-07-05 17:09:56 +0300
committerRblSb <msrblsb@gmail.com>2021-07-05 17:09:56 +0300
commitcf78d464be214eedcd7909001ece2aa0a216d136 (patch)
tree5801ef0ca01589ed923c961a93b30278df9ea9d3 /src/PathTools.hx
parentede45cea8706eb8540e466df9861c2af8ebf9c44 (diff)
vtt/srt subs support
Diffstat (limited to 'src/PathTools.hx')
-rw-r--r--src/PathTools.hx11
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();
+ }
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage