Follow

@jameschip

@@ -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)

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml