Skip to content

unname_everywhere docstring: only the carriage return is optional in \r?\n, not the newline (Copilot on #65) #66

Closed

Description

@brettheap

Lane: xfactory-2 (xFactory-2)

Claim: CLAIMED by lane xFactory-2 (harness 094955e8, profile team-04a) on Brett Heap's word 2026-09-06T03:51Z, in session, verbatim "pick up 16 and merge on green too" (item 16 of the lane's handoff § 7 NEXT). One PR; squash on green; no --admin. Sibling search at filing: no open issues, no open PRs.

What

Copilot's one suppressed comment on PR #65 (#63), read after the merge: the docstring of tests/test_update_shape_add.py::unname_everywhere() says the line ending is "OPTIONAL (\r?\n)", but \r?\n makes only the carriage return optional — the newline is still required, and the entry is still matched as a whole line. As written, the sentence implies the entry line might carry no trailing newline at all, which the pattern does not accept.

What lands

One docstring sentence reworded: the \r is optional so the whole-line match works for LF and CRLF sources alike; the newline itself is required. No code change; the regex, the test and the behaviour stay as #65 left them.

Acceptance

  • tests, tests-windows, tests-macos, SonarCloud green (nothing executable changes; the suite simply still runs).
  • README.md and AGENTS.md untouched.

Origin: #63 → PR #65 ea03d80.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions