Skip to content

Commit

Permalink
Omit ftp protocol from allowed URLs
Browse files Browse the repository at this point in the history
Committed from my iPhone.
  • Loading branch information
EthanThatOneKid authored Jul 13, 2023
1 parent 70211f6 commit 0d28108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

// embedRegex is a regular expression that matches embed URLs.
// https://mathiasbynens.be/demo/url-regex
var embedRegex = regexp.MustCompile(`(https?|ftp):\/\/[^\s\/$.?#].[^\s]*`)
var embedRegex = regexp.MustCompile(`https?:\/\/[^\s\/$.?#].[^\s]*`)

func main() {
// Load the .env file.
Expand Down

0 comments on commit 0d28108

Please sign in to comment.