Merge pull request #15 from Gyubin-Han/feature/url-short
Fix: URL 정규식 수정 - URL 인코딩된 값 포함
This commit is contained in:
@@ -5,7 +5,6 @@ import lombok.Getter;
|
|||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
// @Setter
|
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class GenerateShortUrlRequestDto {
|
public class GenerateShortUrlRequestDto {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class MainService {
|
|||||||
private UrlMapRepository urlMapRepository;
|
private UrlMapRepository urlMapRepository;
|
||||||
|
|
||||||
// HTTP(S) URL 검증 패턴식
|
// HTTP(S) URL 검증 패턴식
|
||||||
private final String urlRegPattern="^((http|https):\\/\\/)?([a-z0-9-]{2,}\\.[a-z]{2,}|([0-9]{1,3}\\.){3}[0-9]{1,3})[\\w.\\/가-힣\\-\\ ?=&:]*";
|
private final String urlRegPattern="^((http|https):\\/\\/)?([a-z0-9-]{2,}\\.[a-z]{2,}|([0-9]{1,3}\\.){3}[0-9]{1,3})[\\w.\\/가-힣\\-\\ ?=&:%0-9A-Fa-f]*";
|
||||||
// Base62 Encoder Instance 생성 및 호출
|
// Base62 Encoder Instance 생성 및 호출
|
||||||
private Base62 base62=Base62.createInstance();
|
private Base62 base62=Base62.createInstance();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user