We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a1e739 commit 8a4bf78Copy full SHA for 8a4bf78
1 file changed
cecli/helpers/hashline.py
@@ -5,7 +5,7 @@
5
6
# Regex patterns for hashline parsing
7
# Format: |{line_number}{hash_fragment}|
8
-HASHLINE_PREFIX_RE = re.compile(r"^\|(-?\d+)([a-zA-Z]{2})\|")
+HASHLINE_PREFIX_RE = re.compile(r"^\|?(-?\d+)([a-zA-Z]{2})\|")
9
10
PARSE_NEW_FORMAT_RE = re.compile(r"^\|?(-?\d+)([a-zA-Z]{2})\|?$")
11
# Format: {hash_fragment}|{line_number}
@@ -201,7 +201,7 @@ def normalize_hashline(hashline_str: str) -> str:
201
# If neither pattern matches, raise error
202
raise HashlineError(
203
f"Invalid hashline format '{hashline_str}'. "
204
- "Expected either '|{line_num}{hash_fragment}|' "
+ "Expected '{line_num}{hash_fragment}' "
205
"where line_num is an integer and hash_fragment is exactly 2 letters. "
206
)
207
0 commit comments