shithub: mycel

Download patch

ref: 9f87586267ec5fe82546f189c0e19f1abc3281ae
parent: 86a0926452f9152288b7aa7c283e15772754897e
author: Philip Silva <philip.silva@protonmail.com>
date: Sun Mar 14 11:20:07 EDT 2021

minor fix

--- a/domino/domino.go
+++ b/domino/domino.go
@@ -150,7 +150,7 @@
 }
 
 func (d *Domino) Exec(script string, initial bool) (res string, err error) {
-	r := regexp.MustCompile(`^\s<!--`)
+	r := regexp.MustCompile(`^\s*<!--`)
 	script = r.ReplaceAllString(script, "//")
 	SCRIPT := domIntf + script
 	if !initial {
--- a/domino/domino_test.go
+++ b/domino/domino_test.go
@@ -729,6 +729,7 @@
 	d := NewDomino(simpleHTML, nil, nil)
 	d.Start()
 	script := `
+
 <!-- This is an actual comment
 
 	''.replace(/^\s*<!--/g, '');