提交 eb325df1 authored 作者: Raymond Chandler's avatar Raymond Chandler

make 0 a valid option

上级 2f8ec154
......@@ -244,7 +244,7 @@
public $strip;
public function __construct( $text = NULL ) {
if ( !$text ) {
if ( !preg_match('/^[\da-dA-D]+$/', $text) ) {
throw new NullDataException( 'match digits must be passed' );
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论