Skip to content

Harden string helper contracts#85

Merged
codeforester merged 1 commit into
mainfrom
bug/79-20260624-str-helper-hardening
Jun 25, 2026
Merged

Harden string helper contracts#85
codeforester merged 1 commit into
mainfrom
bug/79-20260624-str-helper-hardening

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • Add arity checks to string predicate helpers.
  • Avoid str_split result collisions with an array named fields.
  • Document predicate arity and add regression coverage.

Validation

  • shellcheck --severity=error lib/bash/str/lib_str.sh lib/bash/str/tests/lib_str.bats
  • bats lib/bash/str/tests/lib_str.bats
  • ./tests/validate.sh

Fixes #79

@codeforester codeforester force-pushed the bug/77-20260624-arg-parse-option-values branch from 74dea22 to 2c127f4 Compare June 25, 2026 03:25
Base automatically changed from bug/77-20260624-arg-parse-option-values to main June 25, 2026 03:27
@codeforester codeforester force-pushed the bug/79-20260624-str-helper-hardening branch from 3413002 to 5ca5a49 Compare June 25, 2026 04:00
@codeforester codeforester merged commit dd9f84a into main Jun 25, 2026
2 checks passed
@codeforester codeforester deleted the bug/79-20260624-str-helper-hardening branch June 25, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Harden string helper arity and str_split result variables

1 participant