정규식을 통한 한글 초성 검색 모듈
Install
$ npm install --save choseong-search
Usage
String; var text = '동해물과 백두산이 마르고 닳도록'; var case1 = text; // 동해물과var case2 = text; // 과 백var case3 = text; // 백두산이 var case1 = text; // 해물var case2 = text; // 두산var case3 = text; // 고var case4 = text; // 닳 var case1 = text; // 해물과var case2 = text; // 백두산이var case3 = text; // 마르고var case4 = text; // 닳도록 -----var text = '대한민국korea'; var case1 = text; // 민국koreavar case2 = text; // 민구kovar case3 = text; // koreavar case4 = text; // or -----var text = '동해물과 백두산이 마르고 닳도록'; var case1 = text; // 동해물과var case2 = text; // nullvar case3 = text; // null
License
MIT © JiTae, Kim