UNPKG

tiny-types

Version:

A tiny library that brings Tiny Types to JavaScript and TypeScript

19 lines 515 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MatchesRegExp = void 0; const MatcherRule_1 = require("./MatcherRule"); /** * @access private */ class MatchesRegExp extends MatcherRule_1.MatcherRule { pattern; constructor(pattern, transformation) { super(transformation); this.pattern = pattern; } matches(value) { return this.pattern.test(value); } } exports.MatchesRegExp = MatchesRegExp; //# sourceMappingURL=MatchesRegExp.js.map