Skip to content

Commit

Permalink
fix gookit#52:
Browse files Browse the repository at this point in the history
changed match modifier from s (single line mode) to m (multi line mode)
  • Loading branch information
Thomas von Dein committed Oct 24, 2022
1 parent d0fe513 commit 6565073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion color_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
//
// allow custom attrs, eg: "<fg=white;bg=blue;op=bold>content</>"
// (?s:...) s - 让 "." 匹配换行
MatchExpr = `<([0-9a-zA-Z_=,;]+)>(?s:(.*?))<\/>`
MatchExpr = `<([0-9a-zA-Z_=,;]+)>(?m:(.*?))<\/>`

// AttrExpr regex to match custom color attributes
// eg: "<fg=white;bg=blue;op=bold>content</>"
Expand Down

0 comments on commit 6565073

Please sign in to comment.