diff --git a/data/lightning-bugs.kdb b/data/lightning-bugs.kdb index 4de434a..cbf6866 100644 --- a/data/lightning-bugs.kdb +++ b/data/lightning-bugs.kdb @@ -10,7 +10,7 @@ source: Richmond, Carl A. "Fireflies flashing in unison." Science 71.1847 (1930) Although there was a hnt on this approach in 1915 -source: https://sci-hub.se/https://www.nature.com/articles/096411a0 +source:https://www.nature.com/articles/096411a0 There were many incorrect theories involving random happenstance (gusts of wind) or leader-based protocols. These persisted until well into the 1930s: http://people.math.gatech.edu/~weiss/uploads/5/8/6/1/58618765/buck_synchronous_rhythmic_flashing_of_fireflies.pdf diff --git a/kdb.go b/kdb.go index 6e2b751..f15ed35 100644 --- a/kdb.go +++ b/kdb.go @@ -86,7 +86,7 @@ func loadPage(title string) (*Page, error) { body = strings.ReplaceAll(body, word, fmt.Sprintf("[X]%v", cite, link, img)) } if strings.HasPrefix(word, "http") { - body = strings.ReplaceAll(body, word, fmt.Sprintf("", word, word, word)) + body = strings.ReplaceAll(body, word, fmt.Sprintf("%v", word, word)) } if strings.HasPrefix(word, "data:image/png;base64,") { body = strings.ReplaceAll(body, word, fmt.Sprintf("", word))