Skip to content

compile_nats_wildcard

faststream.nats.schemas.js_stream.compile_nats_wildcard #

compile_nats_wildcard(pattern)
Source code in faststream/nats/schemas/js_stream.py
def compile_nats_wildcard(pattern: str) -> Tuple[Optional["Pattern[str]"], str]:
    return compile_path(
        pattern,
        replace_symbol="*",
        patch_regex=lambda x: x.replace(".>", "..+"),
    )