Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api_docs: Update regex for generating code example fixture.

Lauryn Menard662fc64a651b
diff --git a/zerver/openapi/markdown_extension.py b/zerver/openapi/markdown_extension.py
index 63fe92339eb..4f6ab368746 100644
--- a/zerver/openapi/markdown_extension.py
+++ b/zerver/openapi/markdown_extension.py
@@ -31,7 +31,7 @@ from zerver.openapi.openapi import (
openapi_spec,
)
-API_ENDPOINT_NAME = r"/[a-z_/-{}]+:[a-z]+"
+API_ENDPOINT_NAME = r"/[a-z_\-/-{}]+:[a-z]+"
API_LANGUAGE = r"\w+"
API_KEY_TYPE = r"fixture|example"
MACRO_REGEXP = re.compile(