reblack / staplescheck
此包的最新版本(1.0.0)没有可用的许可信息。
字符串中的检查固定符号
1.0.0
2024-09-30 18:27 UTC
Requires (Dev)
- phpunit/phpunit: ^11.3
This package is auto-updated.
Last update: 2024-10-01 07:50:14 UTC
README
此库通过固定符号测试字符串
正确符号
\n \t \r 空格 , ( )
如果遇到任何其他符号,将抛出InvalidArgumentException异常
示例
(new \Staplescheck\Validator('(())\n\t()()'))->isValid(); //true
(new \Staplescheck\Validator('(())('))->isValid(); //false
(new \Staplescheck\Validator('(())(ssdfjkldsf444)'))->isValid(); //false