@shinyongjun/react-datepicker
Version:
DatePicker component in React App.
22 lines • 632 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addLeadingZero = addLeadingZero;
exports.isNumeric = isNumeric;
exports.splitString = splitString;
function addLeadingZero(input) {
if (input === null)
return '';
var inputStr = String(input);
return inputStr.length === 1 ? "0".concat(inputStr) : inputStr;
}
function isNumeric(text) {
if (text === null)
return false;
return /^[0-9]+$/.test(text);
}
// 정규식으로 문자열을 분할
function splitString(str) {
var regex = /([^\w])/g;
return str.split(regex);
}
//# sourceMappingURL=string.js.map