mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix regex
This commit is contained in:
@@ -227,4 +227,10 @@ public class ValidatorTest {
|
||||
Validator.validateIpv4("255.255.255.255", "Error ip");
|
||||
Validator.validateIpv4("127.0.0.0", "Error ip");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isUrlTest(){
|
||||
String content = "https://detail.tmall.com/item.htm?id=639428931841&ali_refid=a3_430582_1006:1152464078:N:Sk5vwkMVsn5O6DcnvicELrFucL21A32m:0af8611e23c1d07697e";
|
||||
System.out.println(Validator.isMatchRegex(Validator.URL_HTTP, content));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user