From 8d28c37d7522f967ad58ebf1031ee58b00521dca Mon Sep 17 00:00:00 2001 From: Ashish Bhatia Date: Sun, 17 Nov 2024 02:14:26 -0800 Subject: [PATCH] chore: minor fix to formatting --- .../hugogenerator/hugopage/wordpress_youtube_converter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp2hugo/internal/hugogenerator/hugopage/wordpress_youtube_converter.go b/src/wp2hugo/internal/hugogenerator/hugopage/wordpress_youtube_converter.go index c787232..a56ee04 100644 --- a/src/wp2hugo/internal/hugogenerator/hugopage/wordpress_youtube_converter.go +++ b/src/wp2hugo/internal/hugogenerator/hugopage/wordpress_youtube_converter.go @@ -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 {