Skip to content
Snippets Groups Projects
Unverified Commit 206a7b5f authored by Patrick Cloke's avatar Patrick Cloke Committed by GitHub
Browse files

Fix the allowed range of valid ordering characters for spaces. (#10002)

\x7F was meant to be \0x7E (~) this was originally incorrect
in MSC1772.
parent 9752849e
No related branches found
No related tags found
No related merge requests found
Fix a validation bug introduced in v1.34.0 in the ordering of spaces in the space summary API.
...@@ -471,8 +471,8 @@ def _is_suggested_child_event(edge_event: EventBase) -> bool: ...@@ -471,8 +471,8 @@ def _is_suggested_child_event(edge_event: EventBase) -> bool:
return False return False
# Order may only contain characters in the range of \x20 (space) to \x7F (~). # Order may only contain characters in the range of \x20 (space) to \x7E (~) inclusive.
_INVALID_ORDER_CHARS_RE = re.compile(r"[^\x20-\x7F]") _INVALID_ORDER_CHARS_RE = re.compile(r"[^\x20-\x7E]")
def _child_events_comparison_key(child: EventBase) -> Tuple[bool, Optional[str], str]: def _child_events_comparison_key(child: EventBase) -> Tuple[bool, Optional[str], str]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment