in src/functions_framework/event_conversion.py [0:0]
def _parse_pubsub_topic(request_path) -> Optional[str]:
match = _PUBSUB_TOPIC_REQUEST_PATH.search(request_path)
if match:
return match.group(0)
else:
# It is possible to configure a Pub/Sub subscription to push directly to this function
# without passing the topic name in the URL path.
return ""