UNPKG

bguard

Version:

**bguard** is a powerful, flexible, and type-safe validation library for TypeScript. It allows developers to define validation schemas for their data structures and ensures that data conforms to the expected types and constraints.

20 lines (15 loc) 853 B
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _chunkTJQ5NVL4js = require('./chunk-TJQ5NVL4.js'); // src/asserts/string/atLeastOneLowerChar.ts var atLeastOneLowerCharErrorMessage = "The received value does not contain at least one lowercase character"; var atLeastOneLowerCharErrorKey = "s:atLeastOneLowerChar"; var atLeastOneLowerChar = () => (received, ctx) => { const lowerCharRegExp = /[a-z]/; if (!lowerCharRegExp.test(received)) ctx.addIssue("at least one lowercase character", received, atLeastOneLowerCharErrorKey); }; atLeastOneLowerChar.key = atLeastOneLowerCharErrorKey; atLeastOneLowerChar.message = atLeastOneLowerCharErrorMessage; _chunkTJQ5NVL4js.setToDefaultLocale.call(void 0, atLeastOneLowerChar); exports.atLeastOneLowerChar = atLeastOneLowerChar; //# sourceMappingURL=chunk-VOFKYSJD.js.map