~m15o/htmlj

dc8ab7d12c1ab24bb9aa6c809153a306fcecaab7 — m15o 1 year, 11 months ago 126e86a
Fix regex
1 files changed, 1 insertions(+), 1 deletions(-)

M htmlj.go
M htmlj.go => htmlj.go +1 -1
@@ 51,7 51,7 @@ func Parse(r io.Reader) (*Journal, error) {
	return j, err
}

var hre = regexp.MustCompile(`<h[12][^>]*>[^>]*</h[12]>`)
var hre = regexp.MustCompile(`<h[12][^>]*>.*?</h[12]>`)
var are = regexp.MustCompile(`<article[^>]*>`)

func extractContent(s string) string {