aboutsummaryrefslogtreecommitdiff
path: root/src/name_from_url.cc
diff options
context:
space:
mode:
authordacctal <120422854+dacctal@users.noreply.github.com>2026-01-21 23:56:39 -0500
committerdacctal <120422854+dacctal@users.noreply.github.com>2026-01-21 23:56:39 -0500
commit8926f839720471cc86fd4f7c6371d63b8f71b91d (patch)
treec14523954085f7b6c428a488f81bfb645dcd2c83 /src/name_from_url.cc
parent8fc3b1f6cd1062e15c0aed60a110fb91143cd801 (diff)
initial commit
Diffstat (limited to 'src/name_from_url.cc')
-rw-r--r--src/name_from_url.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/name_from_url.cc b/src/name_from_url.cc
new file mode 100644
index 0000000..2aaddac
--- /dev/null
+++ b/src/name_from_url.cc
@@ -0,0 +1,5 @@
+#include <string>
+
+std::string name_from_url(std::string url) {
+ return url.substr(url.find_last_of('/') + 1);
+}