Cover Krea action POV smoke routes
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ def _strip_empty_fields(text: str) -> str:
|
||||
labels = "|".join(re.escape(label) for label in EMPTY_FIELD_LABELS)
|
||||
text = re.sub(rf"\b(?:{labels})\s*:\s*[.,;]", "", text, flags=re.IGNORECASE)
|
||||
text = re.sub(rf"\b(?:{labels}):\s*(?=\.|,|;|$)", "", text, flags=re.IGNORECASE)
|
||||
text = re.sub(rf"\b(?:{labels})\.(?=\s|$)", "", text, flags=re.IGNORECASE)
|
||||
text = re.sub(rf"(^|(?<=[.!?])\s+)(?:{labels})\.(?=\s|$)", r"\1", text, flags=re.IGNORECASE)
|
||||
text = re.sub(rf"\b(?:{labels}):\s*(?:none|null|n/a)\b[.,;]?", "", text, flags=re.IGNORECASE)
|
||||
return clean_spacing(text)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user