- May 11, 2021
-
-
Richard van der Hoff authored
* tests for push rule pattern matching * tests for acl pattern matching * factor out common `re.escape` * Factor out common re.compile * Factor out common anchoring code * add word_boundary support to `glob_to_regex` * Use `glob_to_regex` in push rule evaluator NB that this drops support for character classes. I don't think anyone ever used them. * Improve efficiency of globs with multiple wildcards The idea here is that we compress multiple `*` globs into a single `.*`. We also need to consider `?`, since `*?*` is as hard to implement efficiently as `**`. * add assertion on regex pattern * Fix mypy * Simplify glob_to_regex * Inline the glob_to_regex helper function Signed-off-by:
Dan Callahan <danc@element.io> * Moar comments Signed-off-by:
Dan Callahan <danc@element.io> Co-authored-by:
Dan Callahan <danc@element.io>
-
- Apr 14, 2021
-
-
Jonathan de Jong authored
Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by:
Jonathan de Jong <jonathan@automatia.nl>`>
-
- Jan 25, 2021
-
-
Patrick Cloke authored
Treat the content as untrusted and do not assume it is of the proper form.
-
- Jul 06, 2020
-
-
reivilibre authored
* Fix spec compliance; tweaks without values are valid (default to True, which is only concretely specified for `highlight`, but it seems only reasonable to generalise) * Changelog for 7766. * Add documentation to `tweaks_for_actions` May as well tidy up when I'm here. * Add a test for `tweaks_for_actions`
-
- Jun 15, 2020
-
-
Patrick Cloke authored
-
- Apr 22, 2020
-
-
Patrick Cloke authored
-
- Apr 16, 2020
-
-
Patrick Cloke authored
-