Skip to content

Commit

Permalink
Run 'make format'
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Stigsson committed Nov 14, 2024
1 parent 7e67105 commit 71a965e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp2hugo/internal/hugogenerator/hugopage/hugo_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const _customMoreTag = "{{< more >}}"
const _wordPressTocTag = "[toc]"

var (
_markdownPdfLinks = regexp.MustCompile(`\[.*?]\((.+?\.pdf).*?\)`)
_markdownPdfLinks = regexp.MustCompile(`\[.*?]\((.+?\.pdf).*?\)`)
_markdownImageLinks = regexp.MustCompile(`!\[.*?]\((.+?)\)`)
// E.g. <pre class="EnlighterJSRAW" data-enlighter-language="golang">
_preTagExtractor1 = regexp.MustCompile(`<pre class="EnlighterJSRAW" data-enlighter-language="([^"]+?)".*?>([\s\S]*?)</pre>`)
Expand Down Expand Up @@ -110,7 +110,7 @@ func (page *Page) WPMediaLinks() []string {
arr4 := getMarkdownLinks(_hugoAudioLinks, page.markdown)
arr5 := getMarkdownLinks(_markdownPdfLinks, page.markdown)
coverImageURL := page.getCoverImageURL()
result := append(append(append(append(arr1, arr2...), arr3...), arr4...),arr5...)
result := append(append(append(append(arr1, arr2...), arr3...), arr4...), arr5...)
if coverImageURL != nil {
result = append(result, *coverImageURL)
}
Expand Down

0 comments on commit 71a965e

Please sign in to comment.