@@ -19,12 +19,7 @@ function gemini_request
set url (string trim $url)
set request (string trim $request)
- set last_char (string sub -s -1 $url )
- if test $last_char = "/"
- set len (string length $url )
- set len (math $len-1)
- set url (string sub -l $len $url)
- end
+ set url (string split / $url | head -n1)