File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ class MacroArg:
3434 # Pattern used to find normal argument
3535 # Digits surrounded by exactly 1 brace on a side and 1 or more braces on the opposite side
3636 # Match strings like: {5}, {{{{{4}, {2}}}}}
37- macro_normal_arg_pattern = re .compile (r'(?<!\{)\ {\d+\}|\ {\d+\ }(?!\ })' )
37+ macro_normal_arg_pattern = re .compile (r'(?<!{) {\d+}| {\d+}(?!})' )
3838
3939 # Pattern used to find escaped arguments
4040 # Digits surrounded by 2 or more braces on both sides
4141 # Match strings like: {{5}}, {{{{{4}}, {{2}}}}}
42- macro_escaped_arg_pattern = re .compile (r'\ {{2}\d+\ }{2}' )
42+ macro_escaped_arg_pattern = re .compile (r'{{2}\d+}{2}' )
4343
4444 # Finds a string of digits
4545 digit_pattern = re .compile (r'\d+' )
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ def natural_keys(input_str: str) -> List[Union[int, str]]:
229229 :param input_str: string to convert
230230 :return: list of strings and integers
231231 """
232- return [try_int_or_force_to_lower_case (substr ) for substr in re .split ('(\d+)' , input_str )]
232+ return [try_int_or_force_to_lower_case (substr ) for substr in re .split (r '(\d+)' , input_str )]
233233
234234
235235def natural_sort (list_to_sort : Iterable [str ]) -> List [str ]:
You can’t perform that action at this time.
0 commit comments