Python 'Replace' or 'find' functions are not working in Azure functions

Vivek Mishra 6 Reputation points Microsoft Employee
2021-02-14T10:19:59.237+00:00

Python's 'replace' or 'find' functions looks to be not working in Azure function. I am trying below code:

if (entity['name']).find(message) != -1 :

Where entity['name'] value is 'finder Scope Matrix' and message value is 'finder Scope'. So ideally the message string is a part of entity['name'] value. But is always returns false.

It works in the local system.

entity['name'] is text value send from team's outgoing webhook.

Any help?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,706 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,068 questions
{count} votes