Skip to content

Commit ee01a7f

Browse files
author
Ben King
committed
Use is_at_start_of_segment for consistency
1 parent 7392827 commit ee01a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

machine/corpora/punctuation_analysis/quotation_mark_string_match.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def previous_character_matches(self, regex_pattern: regex.Pattern) -> bool:
5454

5555
@property
5656
def previous_character(self) -> Optional[str]:
57-
if self._start_index == 0:
57+
if self.is_at_start_of_segment():
5858
previous_segment = self._text_segment.previous_segment
5959
if previous_segment is not None and not self._text_segment.marker_is_in_preceding_context(
6060
UsfmMarkerType.PARAGRAPH

0 commit comments

Comments
 (0)