@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
11 lines • 399 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkRegex = void 0;
const checkRegex = (regex, value, parsedRepeat) => {
if (parsedRepeat && parsedRepeat > 1) {
return new RegExp(regex + '{' + parsedRepeat + ',}').test(value);
}
return new RegExp(regex).test(value);
};
exports.checkRegex = checkRegex;
//# sourceMappingURL=checkRegex.js.map