fix: hasOne exploeHasStr regex

This commit is contained in:
daodao97
2020-08-31 15:52:15 +08:00
parent e3b640ab6b
commit 8335834ffd

View File

@@ -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;
}