summaryrefslogtreecommitdiff
path: root/internal/platforms/linkedin/escapes.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-10-23 11:05:49 +0300
committerPaul Buetow <paul@buetow.org>2024-10-23 11:05:49 +0300
commitfcd9fe70899c2e30ea467d80c576b950f5f62be6 (patch)
tree8f1df76aebaff67b9e368fa1cd1d9d04cf9eec10 /internal/platforms/linkedin/escapes.go
parent772cf965f15bf06c7cf91095629f6b7f26848f83 (diff)
initial fuzztesting
Diffstat (limited to 'internal/platforms/linkedin/escapes.go')
-rw-r--r--internal/platforms/linkedin/escapes.go2
1 files changed, 1 insertions, 1 deletions
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)