Re-apply: Move glob_to_regex and re_word_boundary to matrix-python-common #11505 (#11687)

Co-authored-by: Sean Quah <seanq@element.io>
This commit is contained in:
reivilibre 2022-01-05 11:41:49 +00:00 committed by GitHub
parent 84d790a32e
commit 84bfe47b01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 123 deletions

View file

@ -28,6 +28,7 @@ from typing import (
Union,
)
from matrix_common.regex import glob_to_regex
from prometheus_client import Counter, Gauge, Histogram
from twisted.internet.abstract import isIPAddress
@ -65,7 +66,7 @@ from synapse.replication.http.federation import (
)
from synapse.storage.databases.main.lock import Lock
from synapse.types import JsonDict, get_domain_from_id
from synapse.util import glob_to_regex, json_decoder, unwrapFirstError
from synapse.util import json_decoder, unwrapFirstError
from synapse.util.async_helpers import Linearizer, concurrently_execute, gather_results
from synapse.util.caches.response_cache import ResponseCache
from synapse.util.stringutils import parse_server_name