fix apostrophe in titles

This commit is contained in:
dre 2021-07-11 15:59:10 +08:00
parent a8c66ac7ac
commit 7d1b6a4089

View file

@ -15,7 +15,7 @@ func RemoveFrontMatter(in chan pipe.StreamItem) chan pipe.StreamItem {
// delete the entire front matter
re := regexp.MustCompile(`---.*---`)
// but parse out the title as we want to reinject it
re2 := regexp.MustCompile(`title:[ "]*([a-zA-Z0-9 :!@#$%^&*)(]+)["]*`)
re2 := regexp.MustCompile(`title:[ "]*([a-zA-Z0-9 :!'@#$%^&*)(]+)["]*`)
for b := range in {
data := b.Payload()