re-introduce context menu command
This commit is contained in:
@@ -3,10 +3,18 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"regexp"
|
||||
)
|
||||
|
||||
var loading_emoji = os.Getenv("LOADING_EMOJI")
|
||||
|
||||
func extractURLFromString(in_url string) string {
|
||||
url_pattern := regexp.MustCompile(`https?://\S+`)
|
||||
var match = url_pattern.Find([]byte(in_url))
|
||||
|
||||
return string(match)
|
||||
}
|
||||
|
||||
// Helper function to create string pointer
|
||||
func ptr(s string) *string {
|
||||
return &s
|
||||
|
||||
Reference in New Issue
Block a user