Preview: consts.py
Size: 275 B
/proc/thread-self/root/opt/hc_python/lib64/python3.12/site-packages/sentry_sdk/ai/consts.py
import re
# Matches data URLs with base64-encoded content, e.g. "data:image/png;base64,iVBORw0K..."
DATA_URL_BASE64_REGEX = re.compile(
r"^data:(?:[a-zA-Z0-9][a-zA-Z0-9.+\-]*/[a-zA-Z0-9][a-zA-Z0-9.+\-]*)(?:;[a-zA-Z0-9\-]+=[^;,]*)*;base64,(?:[A-Za-z0-9+/\-_]+={0,2})$"
)
Directory Contents
Dirs: 1 × Files: 6