mirror of
https://github.com/kovetskiy/mark.git
synced 2026-04-21 22:12:35 +00:00
add optional spaces in regexps
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
var reMacroDirective = regexp.MustCompile(
|
||||
`(?s)<!-- Macro: ([^\n]+)\n\s*Template: (\S+)\n(.*?)-->`,
|
||||
`(?s)<!--\s*Macro:\s*([^\n]+)\n\s*Template:\s*(\S+)\n(.*?)-->`,
|
||||
)
|
||||
|
||||
type Macro struct {
|
||||
|
||||
Reference in New Issue
Block a user