Use a regular expression in replaceShortcodeTokens
authorJeffrey Tolar <tolar.jeffrey@gmail.com>
Thu, 29 Jan 2015 03:11:41 +0000 (21:11 -0600)
committerbep <bjorn.erik.pedersen@gmail.com>
Fri, 30 Jan 2015 19:58:25 +0000 (20:58 +0100)
commit366c557251c73288987a700c63d148a69e9f0ec0
treed03ff7bd2a3662d093fc913cfbebd88a76237f19
parentba53799fdb7c59af8733df2027d245584ca6749f
Use a regular expression in replaceShortcodeTokens

This fixes a bug where a shortcode needs to be expanded multiple times,
which can arise in practice when using reference links.
hugolib/handler_page.go
hugolib/page.go
hugolib/shortcode.go
hugolib/shortcode_test.go