This commit is contained in:
Looly 2021-11-15 20:55:06 +08:00
parent 1a96870ab7
commit 15753a5a31
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ public class RFC3986 {
/**
* gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"
*/
public static final PercentCodec GEN_DELIMS = PercentCodec.of(":/?#[]&");
public static final PercentCodec GEN_DELIMS = PercentCodec.of(":/?#[]@");
/**
* sub-delims = "!" / "$" / "{@code &}" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="

View File

@ -35,7 +35,7 @@ public class StrFormatter {
* 如果想输出占位符使用 \\转义即可如果想输出占位符之前的 \ 使用双转义符 \\\\ 即可<br>
* <br>
* 通常使用format("this is {} for {}", "{}", "a", "b") = this is a for b<br>
* 转义{} format("this is \\{} for {}", "{}", "a", "b") = this is \{} for a<br>
* 转义{} format("this is \\{} for {}", "{}", "a", "b") = this is {} for a<br>
* 转义\ format("this is \\\\{} for {}", "{}", "a", "b") = this is \a for b<br>
*
* @param strPattern 字符串模板