Skip to content

pattern: 'invalid capture index %N in replacement string' uses Lua 5.4 wording #413

Description

@davydog187

Found during automated differential review of PR #406 (pre-existing).

Our gsub replacement error reads invalid capture index %2 in replacement string — that suffix is Lua 5.4 wording; PUC 5.3 says invalid capture index %2. The vendored suite's checkerror substring match tolerates it today, so this is cosmetic conformance only.

🤖 Filed from an automated review pass.

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