def filter_children()

in update-toc.py [0:0]


def filter_children(targeted_ns_list, known_namespaces):
    amended_list = []

    for ns in targeted_ns_list:
        # also need to handle when the namespace grep is a pattern
        # azure-eventhubs* <-- for instance
        if ns in known_namespaces:
            amended_list.append(ns)

    return amended_list