From 65650730d76423504b57358b940a8e3e5fc9fabc Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 24 Oct 2022 13:06:41 +0200 Subject: [PATCH] fix #52: changed match modifier from s (single line mode) to m (multi line mode) --- color_tag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/color_tag.go b/color_tag.go index 4f6fed9..e31e5e4 100644 --- a/color_tag.go +++ b/color_tag.go @@ -16,7 +16,7 @@ const ( // // allow custom attrs, eg: "content" // (?s:...) s - 让 "." 匹配换行 - MatchExpr = `<([0-9a-zA-Z_=,;]+)>(?s:(.*?))<\/>` + MatchExpr = `<([0-9a-zA-Z_=,;]+)>(?m:(.*?))<\/>` // AttrExpr regex to match custom color attributes // eg: "content"