zod icon indicating copy to clipboard operation
zod copied to clipboard

feat: added support multiple parameters in .startsWith() and .endsWith() in string for ticket #3683

Open Kumar06Lav opened this issue 1 year ago • 2 comments

Added support for multiple parameters in the .startsWith() and .endsWith() methods for string validation. This enhancement allows for more versatile input checks by enabling validation against an array of possible starting or ending values.

This implementation was done for ticket #3683

Changes:

Modified the .startsWith() method to accept an array of valid prefixes. Implemented the .endsWith() method to validate strings against multiple suffixes. Added test cases to verify the new functionality. Updated documentation to reflect the changes and provide usage examples.

Kumar06Lav avatar Aug 08 '24 16:08 Kumar06Lav

Deploy Preview for guileless-rolypoly-866f8a ready!

Built without sensitive environment variables

Name Link
Latest commit c7ba5928b90f0a084f5f0fd3ea1e6d8bcbde4963
Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/66b4ed96e268500008765377
Deploy Preview https://deploy-preview-3693--guileless-rolypoly-866f8a.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Aug 08 '24 16:08 netlify[bot]

@colinhacks Could you please help me with review of my PR and merging it(if everything is fine)?

Kumar06Lav avatar Aug 22 '24 05:08 Kumar06Lav