MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / is_msg

Function is_msg

Software/Scratch/GoPiGo3Scratch.py:402–412  ·  view source on GitHub ↗

Check if msg is a valid form of the compiled regex

(reg,msg)

Source from the content-addressed store, hash-verified

400
401
402def is_msg(reg,msg):
403 '''
404 Check if msg is a valid form of the compiled regex
405 '''
406 retval = reg.match(msg.strip())
407
408 if retval is None:
409 return False
410 else:
411 logger.debug ("Recognized {}".format(msg))
412 return True
413
414
415def handle_GoPiGo3_msg(msg):

Callers 2

is_GoPiGo3_msgFunction · 0.85
is_GoPiGo3_Sensor_msgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected