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):
1166
1166
# strategy. Otherwise, a formatting string that ends with a formatting item would only match the first letter
1167
1167
# of the field, because it doesn't find anything to match after (and it is non-greedy). With the $, it has
1168
1168
# 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
1170
1170
# I.e. if a function that creates the formatted string does
1171
1171
# my_string = f"{format_str}\n"
1172
1172
# (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