fix apostrophe in titles
This commit is contained in:
parent
a8c66ac7ac
commit
7d1b6a4089
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue