변환매핑 한글대응

This commit is contained in:
daekuk
2025-12-29 17:20:31 +09:00
parent de67e321ab
commit f06adb5ff1
@@ -171,7 +171,13 @@ public class Transform2Service extends BaseService {
private String genConversionSourceItems(String srcLayoutName, String cnvsncmdname) {
Pattern pattern = Pattern.compile(srcLayoutName + "(\\w|\\[|\\]|\\*|\\.|-|:)*");
// \w : 영문, 숫자, _
// \. \- : 점, 하이픈
// \[ \] \* : 대괄호, 별표
// : : 콜론
// \uAC00-\uD7A3 : 한글 전체 ('가' ~ '힣')
Pattern pattern = Pattern.compile(srcLayoutName + "[\\w\\.\\[\\]\\*\\-:\\uAC00-\\uD7A3]*");
Matcher matcher = pattern.matcher(cnvsncmdname);
StringBuilder result = new StringBuilder();