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"