MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / ValidateTopic

Function ValidateTopic

compendium/EM/src/Event.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 namespace
32 {
33 bool
34 ValidateTopic(std::string const& topic)
35 {
36 std::string regexExpr = "([A-Za-z0-9_.]+)(\\/[A-Za-z0-9_.]+)*";
37
38 return std::regex_match(topic, std::regex(regexExpr));
39 }
40
41 bool
42 PropsAreEqual(AnyMap const& props1, AnyMap const& props2)

Callers 1

EventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected