zero-slop 2.12.32 → 2.12.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/scripts/rescue.py CHANGED
@@ -147,6 +147,14 @@ def rescue_text(text: str) -> str:
147
147
  r"thrilled to announce a game[-\u2011]changing update\b",
148
148
  lambda m: m.group(1) + m.group(2) + m.group(3) + " thrilled to announce an update", out,
149
149
  )
150
+ # Recast a versioned release opener while retaining the exact authored
151
+ # feeling, degree, announcement and object. Match the gateway rescue rule.
152
+ out = re.sub(
153
+ r"(^|[.!?][ \t\r\n]+|\r?\n[ \t]*\r?\n[ \t]*)([Ww]e(?:['’]re| are) incredibly excited) "
154
+ r"to announce(?=[ \t]+[A-Z][A-Za-z0-9_-]*(?:[ \t]+[A-Z][A-Za-z0-9_-]*){0,3}"
155
+ r"[ \t]+v?[0-9]+(?:\.[0-9]+){1,3}(?:[,.!?](?![0-9])|$))",
156
+ r"\1\2 about announcing", out,
157
+ )
150
158
  rules: list[tuple[str, str | object]] = [
151
159
  (
152
160
  r"\bwe are thrilled to unveil ([^,\n]+),\s+a transformative release that "