Skip to content

Commit

Permalink
fix: 兼容bbcode size无%
Browse files Browse the repository at this point in the history
  • Loading branch information
mlzzen committed Jul 30, 2023
1 parent 11803d0 commit 04905c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public String decode(String content, HtmlData htmlData) {
content = StringUtils.replaceAll(content, ignoreCaseTag + "\\[/font\\]", "</span>");

// size
content = StringUtils.replaceAll(content, ignoreCaseTag + "\\[size=(\\d+)%\\]",
content = StringUtils.replaceAll(content, ignoreCaseTag + "\\[size=(\\d+)%?\\]",
"<span style=\"font-size:$1%;line-height:$1%\">");
content = StringUtils.replaceAll(content, ignoreCaseTag + "\\[/size\\]", "</span>");

Expand Down

0 comments on commit 04905c1

Please sign in to comment.