From fcd9fe70899c2e30ea467d80c576b950f5f62be6 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 23 Oct 2024 11:05:49 +0300 Subject: initial fuzztesting --- internal/platforms/linkedin/escapes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/platforms/linkedin/escapes.go') diff --git a/internal/platforms/linkedin/escapes.go b/internal/platforms/linkedin/escapes.go index 21b4c56..31110a0 100644 --- a/internal/platforms/linkedin/escapes.go +++ b/internal/platforms/linkedin/escapes.go @@ -42,7 +42,7 @@ func escapeLinkedInText(input string) string { // extractURLs finds all occurrences of URLs starting with "http://" or "https://" in a given string. func extractURLs(input string) []string { // Regular expression pattern to match URLs starting with http:// or https:// - urlPattern := `(http://|https://)[^\s]+` + urlPattern := `(http://|https://|ftp://)[^\s]+` // Compile the regular expression re := regexp.MustCompile(urlPattern) -- cgit v1.2.3