reblack/staplescheck

There is no license information available for the latest version (1.0.1) of this package.

Check staples in string

Maintainers

Package info

github.com/ReBlack/staplescheck

pkg:composer/reblack/staplescheck

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2024-10-15 15:54 UTC

This package is auto-updated.

Last update: 2026-02-15 19:36:59 UTC


README

This library tests a string with staples

correct symbols

\n \t \r space , ( )

if any other symbol is encountered, it will be throws InvalidArgumentException

Examples:

(new \Staplescheck\Validator('(())\n\t()()'))->isValid(); //true

(new \Staplescheck\Validator('(())('))->isValid(); //false

(new \Staplescheck\Validator('(())(ssdfjkldsf444)'))->isValid(); //false