improve comment multiline matching
This commit is contained in:
parent
563b714ed6
commit
8bfd57bef1
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ func RemoveComments(in chan pipe.StreamItem) chan pipe.StreamItem {
|
||||||
out := make(chan pipe.StreamItem)
|
out := make(chan pipe.StreamItem)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
re := regexp.MustCompile(`<!--.*-->`)
|
re := regexp.MustCompile(`(?s)<!--(.*?)-->`)
|
||||||
|
|
||||||
for b := range in {
|
for b := range in {
|
||||||
data := b.Payload()
|
data := b.Payload()
|
||||||
|
|
Loading…
Reference in a new issue