mirror of
http://124.126.16.154:8888/singularity/hyperf-admin.git
synced 2026-01-15 06:55:06 +08:00
fix: hasOne exploeHasStr regex
This commit is contained in:
@@ -344,7 +344,7 @@ abstract class AbstractController extends Controller
|
||||
|
||||
public function explodeHasStr($has_str)
|
||||
{
|
||||
$check = preg_match('/([a-zA-Z_]+\.)?([a-zA-Z_]+)\.([a-zA-Z_]+):([a-zA-Z_0-9]+->)?([a-zA-Z_,0-9 ]+)/', $has_str, $match);
|
||||
$check = preg_match('/([a-zA-Z_0-9]+\.)?([a-zA-Z_0-9]+)\.([a-zA-Z_0-9]+):([a-zA-Z_0-9]+->)?([a-zA-Z_,0-9 ]+)/', $has_str, $match);
|
||||
if ($check === 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user