From 24231bc601f3f868d60e46fc896d3f1e161bca94 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Fri, 18 Apr 2025 03:06:54 +0300 Subject: [PATCH] Rename truncate_title to _truncate_title --- post_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post_parser.py b/post_parser.py index 51d2ab6..daffca2 100644 --- a/post_parser.py +++ b/post_parser.py @@ -141,7 +141,7 @@ class PostParser: return name return "Unknown author" - def truncate_title(self, first_line: str) -> str: + def _truncate_title(self, first_line: str) -> str: """Truncate the title """ # Step 1: Cut at the first period followed by a space, if present period_match = re.search(r'\.(?=\s)', first_line) @@ -219,7 +219,7 @@ class PostParser: first_line = first_line.lower().capitalize() # --- Trim long strings --- - processed_title = self.truncate_title(first_line) + processed_title = self._truncate_title(first_line) # --- Decision Logic --- (Phase 2: Decide whether to use processed text or fallback)