Skip to content

Commit b25a312

Browse files
committed
Bugfix: Don't allow commas in facts and titles, as is used as separator
1 parent e291881 commit b25a312

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ func (p *TripleAggregateToWikiPageConverter) convertUriToWikiTitle(uri string, u
613613
factTitle = str.Replace(factTitle, ">", "greater than", -1)
614614
factTitle = str.Replace(factTitle, "?", " ", -1)
615615
factTitle = str.Replace(factTitle, "&", " ", -1)
616+
factTitle = str.Replace(factTitle, ",", " ", -1) // Can't allow comma's as we use it as a separator in template variables
616617
factTitle = str.Replace(factTitle, ".", " ", -1)
617618
factTitle = str.Replace(factTitle, "=", "-", -1)
618619

0 commit comments

Comments
 (0)