MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / regex

Method regex

tests/testvalidator.cpp:961–968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959 // ***** Endpoint for ValidatorRegularExpression ******
960 C_ATTR(regex, :Local :AutoArgs)
961 void regex(Context *c)
962 {
963 Validator v({new ValidatorRegularExpression(
964 u"field"_s,
965 QRegularExpression(u"^(\\d\\d)/(\\d\\d)/(\\d\\d\\d\\d)$"_s),
966 m_validatorMessages)});
967 checkResponse(c, v.validate(c));
968 }
969
970 // ***** Endpoint for ValidatorRequired ******
971 C_ATTR(required, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected