Returns True if the input is related to Facebook notifications. Arguments: text -- user-input, typically transcribed speech
(text)
| 49 | |
| 50 | |
| 51 | def isValid(text): |
| 52 | """ |
| 53 | Returns True if the input is related to Facebook notifications. |
| 54 | |
| 55 | Arguments: |
| 56 | text -- user-input, typically transcribed speech |
| 57 | """ |
| 58 | return bool(re.search(r'\bnotification|Facebook\b', text, re.IGNORECASE)) |
nothing calls this directly
no outgoing calls
no test coverage detected