lepu-test-platform-web/node_modules/element-ui/lib/utils/shared.js

12 lines
268 B
JavaScript

"use strict";
exports.__esModule = true;
exports.isDef = isDef;
exports.isKorean = isKorean;
function isDef(val) {
return val !== undefined && val !== null;
}
function isKorean(text) {
var reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;
return reg.test(text);
}