mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
add test
This commit is contained in:
parent
ea4bc023af
commit
231e0cf1d7
@ -150,6 +150,14 @@ public class ReUtilTest {
|
||||
Assert.assertEquals("[", s);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void escapeTest3(){
|
||||
String context = "{prefix}_";
|
||||
String regex = "{prefix}_";
|
||||
final boolean b = ReUtil.isMatch(ReUtil.escape(regex), context);
|
||||
Assert.assertTrue(b);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getAllGroupsTest() {
|
||||
//转义给定字符串,为正则相关的特殊符号转义
|
||||
|
Loading…
Reference in New Issue
Block a user