mirror of
https://github.com/kovetskiy/mark.git
synced 2026-04-28 10:32:33 +00:00
add optional spaces in regexps
This commit is contained in:
@@ -16,7 +16,9 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
reIncludeDirective = regexp.MustCompile(`(?s)<!-- Include: (\S+)(.*?)-->`)
|
||||
reIncludeDirective = regexp.MustCompile(
|
||||
`(?s)<!--\s*Include:\s*(\S+)(.*?)-->`,
|
||||
)
|
||||
)
|
||||
|
||||
func LoadTemplate(
|
||||
|
||||
Reference in New Issue
Block a user