From ea10c7969edf75da3f0cc745eb2df4a12e3b7d31 Mon Sep 17 00:00:00 2001 From: YoungJin Cho Date: Sat, 7 Oct 2023 17:07:39 +0900 Subject: [PATCH] =?UTF-8?q?#63=20Fix:=20regex=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kakao/linknamu/kakao/service/KaKaoSendMeService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linknamu/src/main/java/com/kakao/linknamu/kakao/service/KaKaoSendMeService.java b/linknamu/src/main/java/com/kakao/linknamu/kakao/service/KaKaoSendMeService.java index 719ebd2a..222d593d 100644 --- a/linknamu/src/main/java/com/kakao/linknamu/kakao/service/KaKaoSendMeService.java +++ b/linknamu/src/main/java/com/kakao/linknamu/kakao/service/KaKaoSendMeService.java @@ -41,7 +41,7 @@ public List extractLink(MultipartFile multipartFile) { // https 링크를 추출하기 위한 정규 표현식 String regex = "https?://[a-zA-Z0-9\\-\\.]+(\\:[0-9]+)?\\.[a-zA-Z]{2,3}(\\S*)?"; - + // \bhttps?://\S+ => 모든 http, https 도메인 검출 Pattern pattern = Pattern.compile(regex);