Use glob_to_regex from matrix-common

This commit is contained in:
Olivier 2022-01-05 14:51:05 +00:00
parent 1592440bc9
commit 3016ba25cb
2 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from synapse.util import glob_to_regex
from matrix_common.regex import glob_to_regex
RECOMMENDATION_BAN = "m.ban"
RECOMMENDATION_BAN_TYPES = [RECOMMENDATION_BAN, "org.matrix.mjolnir.ban"]

View File

@ -7,5 +7,7 @@ setup(
description="Mjolnir Antispam",
include_package_data=True,
zip_safe=True,
install_requires=[],
install_requires=[
"matrix-common >= 1.0.0"
],
)