File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1166,7 +1166,7 @@ def template_to_regex(format_str, with_eol=True):
11661166 # strategy. Otherwise, a formatting string that ends with a formatting item would only match the first letter
11671167 # of the field, because it doesn't find anything to match after (and it is non-greedy). With the $, it has
11681168 # something to match after the field, thus making sure it matches the whole field
1169- # This does assume that the format_str in the string to be matched is indeed followed by and end-of-line character
1169+ # This does assume that the format_str in the string to be matched is indeed followed by an end-of-line character
11701170 # I.e. if a function that creates the formatted string does
11711171 # my_string = f"{format_str}\n"
11721172 # (i.e. has an end-of-line after the format specifier) it can be matched by another function that does
You can’t perform that action at this time.
0 commit comments