Skip to content

Commit

Permalink
chore: minor fix to formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb committed Nov 17, 2024
1 parent dd08f3a commit 8d28c37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

// Example: Plain-text Youtube URLs on their own line in post content are turned by WP into embeds
// The YouTube Lyte plug-in additionally uses "httpa://" for audio and "httpv://" for video embeds:
// https://wordpress.com/plugins/wp-youtube-lyte
// https://wordpress.com/plugins/wp-youtube-lyte
var _YoutubeRegEx = regexp.MustCompile(`(?m)(^|\s)http[sav]?://(?:m\.|www\.)?(?:youtu\.be|youtube\.com)/(?:watch|w)\?v=([^&\s]+)`)

func replacePlaintextYoutubeURL(htmlData string) string {
Expand Down

0 comments on commit 8d28c37

Please sign in to comment.