관리-도구
편집 파일: _stringToArray.08127ca9.js
function d(r,u,n){var e=-1,o=r.length;u<0&&(u=-u>o?0:o+u),n=n>o?o:n,n<0&&(n+=o),o=u>n?0:n-u>>>0,u>>>=0;for(var f=Array(o);++e<o;)f[e]=r[e+u];return f}function P(r,u,n){var e=r.length;return n=n===void 0?e:n,!u&&n>=e?r:d(r,u,n)}var m="\\ud800-\\udfff",R="\\u0300-\\u036f",b="\\ufe20-\\ufe2f",_="\\u20d0-\\u20ff",y=R+b+_,A="\\ufe0e\\ufe0f",v="\\u200d",C=RegExp("["+v+m+y+A+"]");function h(r){return C.test(r)}function x(r){return r.split("")}var i="\\ud800-\\udfff",S="\\u0300-\\u036f",$="\\ufe20-\\ufe2f",M="\\u20d0-\\u20ff",k=S+$+M,U="\\ufe0e\\ufe0f",H="["+i+"]",s="["+k+"]",a="\\ud83c[\\udffb-\\udfff]",J="(?:"+s+"|"+a+")",t="[^"+i+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",O="\\u200d",g=J+"?",p="["+U+"]?",T="(?:"+O+"(?:"+[t,c,l].join("|")+")"+p+g+")*",V=p+g+T,j="(?:"+[t+s+"?",s,c,l,H].join("|")+")",E=RegExp(a+"(?="+a+")|"+j+V,"g");function L(r){return r.match(E)||[]}function W(r){return h(r)?L(r):x(r)}export{P as c,h,W as s};