Fix tuple delimiter corruption when missing closing bracket, Handle <|#: -> <|#|> pattern
This commit is contained in:
parent
fd48afdb00
commit
ff705a2323
1 changed files with 7 additions and 0 deletions
|
|
@ -2652,6 +2652,13 @@ def fix_tuple_delimiter_corruption(
|
|||
record,
|
||||
)
|
||||
|
||||
# Fix <|#: -> <|#|> (missing closing >)
|
||||
record = re.sub(
|
||||
rf"<\|{escaped_delimiter_core}:(?!>)",
|
||||
tuple_delimiter,
|
||||
record,
|
||||
)
|
||||
|
||||
# Fix: <|| -> <|#|>
|
||||
record = re.sub(
|
||||
r"<\|\|(?!>)",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue