Skip to content

Add contains/starts-with/ends-with substring checkers #206

Description

@cinar

Proposal

Add three small, high-utility substring checkers, following the established checker file pattern (see email.go):

  • contains:strstrings.Contains
  • starts-with:strstrings.HasPrefix
  • ends-with:strstrings.HasSuffix

Common uses: password composition rules, URL/path prefix checks, identifier conventions.

  • Register schema_maker.go pattern mappings for each (e.g. starts-with:https://"pattern": "^https://.*")
  • Add error codes + messages to all 23 locale files
  • 100% test coverage; CHANGELOG.md entry

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions