making/yavi

Use pattern compile or supply pattern option

atkawa7 opened this issue · 1 comments

	public CharSequenceConstraint<T, E> pattern(String regex) {
		this.predicates().add(ConstraintPredicate.of(x -> Pattern.matches(regex, x),
				CHAR_SEQUENCE_PATTERN, () -> new Object[] { regex }, VALID));
		return this;
	}

Pull requests are welcome!